Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow to disable or enable the expand/collapse button #33

Merged
merged 1 commit into from
Dec 8, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ You can get the list of `ISlTreeNode` from the computed `slVueTree.nodes` proper
|------------------|--------------------|------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| value | ISlTreeNodeModel[] | [] | An array of nodes to show. Each node is represented by `ISlTreeNodeModel` interface |
| allowMultiselect | Boolean | true | Disable or enable the multiselect feature |
| allowToggleBranch | Boolean | true | Disable or enable the expand/collapse button |
| edgeSize | Number | 3 | Offset in pixels from top and bottom for folder-node element. While dragging cursor is in that offset, the dragging node will be placed before or after the folder-node instead of being placed inside the folder. |
| scrollAreaHeight | Number | 70 | Offset in pixels from top and bottom for the component element. While dragging cursor is in that area, the scrolling starts. |
| maxScrollSpeed | Number | 20 | The scroll speed is relative to the cursor position. Defines the max scroll speed.
Expand Down
1 change: 1 addition & 0 deletions dist/sl-vue-tree.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ export default class SlVueTree<TDataType> extends Vue {
showBranches: boolean;
level: number;
parentInd: number;
allowToggleBranch: boolean;
private rootCursorPosition;
private rootDraggingNode;
cursorPosition: ICursorPosition<TDataType>;
Expand Down
2 changes: 1 addition & 1 deletion dist/sl-vue-tree.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/sl-vue-tree.js.map

Large diffs are not rendered by default.

Loading