You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
| value | ISlTreeNodeModel[]|[]| An array of nodes to show. Each node represented by `ISlTreeNodeModel` interface |
91
+
| value | ISlTreeNodeModel[]|[]| An array of nodes to show. Each node is represented by `ISlTreeNodeModel` interface |
92
92
| allowMultiselect | Boolean | true | Disable or enable the multiselect feature |
93
-
| 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 to be placed inside the folder. |
93
+
| 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. |
94
94
| scrollAreaHeight | Number | 70 | Offset in pixels from top and bottom for the component element. While dragging cursor is in that area, the scrolling starts. |
95
95
| maxScrollSpeed | Number | 20 | The scroll speed is relative to the cursor position. Defines the max scroll speed.
96
96
| multiselectKey | string|string[] | ['ctrlKey', 'metaKey'] | The keys for multiselect mode. Allowed values are ['ctrlKey', 'metaKey', 'altKey']
@@ -100,7 +100,7 @@ You can get the list of `ISlTreeNode` from the computed `slVueTree.nodes` proper
| nodes | ISlTreeNode[]| List of nodes with some computed props. See `ISlTreeNode` interface. |
103
-
| cursorPosition | ICursorPosition | Represents the current cursor position that describes the action that will be applied to the dragged node while`mouseup` event. See `ICursorPosition` interface |
103
+
| cursorPosition | ICursorPosition | Represents the current cursor position that describes the action that will be applied to the dragged node on`mouseup` event. See `ICursorPosition` interface |
104
104
| selectionSize | Number | The count of selected nodes
105
105
| dragSize | Number | The count of selected and draggable nodes
106
106
| isDragging | Boolean | True if nodes are dragging
| getNode(path: number[]): ISlTreeNode | Find the node by using it's path |
132
+
| getNode(path: number[]): ISlTreeNode | Find the node by using its path |
133
133
| traverse(cb: (node: ISlTreeNode, nodeModel: ISlTreeNodeModel, siblings: ISlTreeNodeModel[]) => boolean) | Helpful method to traverse all nodes. The traversing will be stopped if callback returns `false`. |
134
-
| updateNode(path: number[], patch: Partial<ISlTreeNodeModel>) | Update the node by using it's path |
135
-
| select(path: number[], addToSelection = false) | Select the node by using it's path ||
136
-
| getNodeEl(): HTMLElement | Get the node HTMLElement by using it's path |
134
+
| updateNode(path: number[], patch: Partial<ISlTreeNodeModel>) | Update the node by using its path |
135
+
| select(path: number[], addToSelection = false) | Select the node by using its path ||
136
+
| getNodeEl(): HTMLElement | Get the node HTMLElement by using its path |
137
137
| getSelected(): ISlTreeNode[]| Get selected nodes |
138
138
| remove(paths: number[][]) | Remove nodes by paths. For example `.remove([[0,1], [0,2]])`
139
139
| getFirstNode(): ISlTreeNode | Get the first node in the tree |
0 commit comments