Skip to content

Commit 1549f52

Browse files
Clézio Alves dos Santosholiber
Clézio Alves dos Santos
authored andcommitted
Allow to disable or enable the expand/collapse button (#33)
1 parent 978702e commit 1549f52

8 files changed

+1139
-1129
lines changed

README.md

+1
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,7 @@ You can get the list of `ISlTreeNode` from the computed `slVueTree.nodes` proper
9090
|------------------|--------------------|------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
9191
| value | ISlTreeNodeModel[] | [] | An array of nodes to show. Each node is represented by `ISlTreeNodeModel` interface |
9292
| allowMultiselect | Boolean | true | Disable or enable the multiselect feature |
93+
| allowToggleBranch | Boolean | true | Disable or enable the expand/collapse button |
9394
| 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. |
9495
| scrollAreaHeight | Number | 70 | Offset in pixels from top and bottom for the component element. While dragging cursor is in that area, the scrolling starts. |
9596
| maxScrollSpeed | Number | 20 | The scroll speed is relative to the cursor position. Defines the max scroll speed.

dist/sl-vue-tree.d.ts

+1
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ export default class SlVueTree<TDataType> extends Vue {
3434
showBranches: boolean;
3535
level: number;
3636
parentInd: number;
37+
allowToggleBranch: boolean;
3738
private rootCursorPosition;
3839
private rootDraggingNode;
3940
cursorPosition: ICursorPosition<TDataType>;

dist/sl-vue-tree.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/sl-vue-tree.js.map

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)