Skip to content

Commit

Permalink
Allow to disable or enable the expand/collapse button (#33)
Browse files Browse the repository at this point in the history
  • Loading branch information
Clézio Alves dos Santos authored and holiber committed Dec 8, 2018
1 parent 978702e commit 1549f52
Show file tree
Hide file tree
Showing 8 changed files with 1,139 additions and 1,129 deletions.
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

0 comments on commit 1549f52

Please sign in to comment.