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 | IPowerTreeNodeModel[]|[]| An array of nodes to show. Each node is represented by `IPowerTreeNodeModel` interface|
92
-
| allowMultiselect | Boolean | true | Disable or enable the multiselect feature |
93
-
| allowToggleBranch | Boolean | true | Disable or enable the expand/collapse button |
94
-
| 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. |
95
-
| scrollAreaHeight | Number | 70 | Offset in pixels from top and bottom for the component element. While dragging cursor is in that area, the scrolling starts. |
96
-
| maxScrollSpeed | Number | 20 | The scroll speed is relative to the cursor position. Defines the max scroll speed.
97
-
| multiselectKey | String/String[]|['ctrlKey', 'metaKey'] | The keys for multiselect mode. Allowed values are ['ctrlKey', 'metaKey', 'altKey']
| value | IPowerTreeNodeModel[]|[]| An array of nodes to show. Each node is represented by `IPowerTreeNodeModel` interface |
92
+
| allowMultiselect | Boolean | true | Disable or enable the multiselect feature|
93
+
| allowToggleBranch | Boolean | true | Disable or enable the expand/collapse button|
94
+
| 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. |
95
+
| scrollAreaHeight | Number | 70 | Offset in pixels from top and bottom for the component element. While dragging cursor is in that area, the scrolling starts.|
96
+
| maxScrollSpeed | Number | 20 | The scroll speed is relative to the cursor position. Defines the max scroll speed.
97
+
| multiselectKey | String/String[] | ['ctrlKey', 'metaKey'] | The keys for multiselect mode. Allowed values are ['ctrlKey', 'metaKey', 'altKey']
| nodes | IPowerTreeNode[]| List of nodes with some computed props. See `IPowerTreeNode` interface.|
104
-
| 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 |
105
-
| selectionSize | Number | The count of selected nodes
106
-
| dragSize | Number | The count of selected and draggable nodes
107
-
| isDragging | Boolean | True if nodes are dragging
| nodes | IPowerTreeNode[]| List of nodes with some computed props. See `IPowerTreeNode` interface. |
104
+
| 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 |
105
+
| selectionSize | Number | The count of selected nodes
106
+
| dragSize | Number | The count of selected and draggable nodes
107
+
| isDragging | Boolean | True if nodes are dragging
| getNode(path: number[]): IPowerTreeNode | Find the node by using its path |
135
-
| traverse(cb: (node: IPowerTreeNode, nodeModel: IPowerTreeNodeModel, siblings: IPowerTreeNodeModel[]) => boolean) | Helpful method to traverse all nodes. The traversing will be stopped if callback returns `false`. |
136
-
| updateNode(path: number[], patch: Partial<IPowerTreeNodeModel>) | Update the node by using its path |
137
-
| select(path: number[], addToSelection = false) | Select the node by using its path ||
138
-
| getNodeEl(): HTMLElement | Get the node HTMLElement by using its path |
139
-
| getSelected(): IPowerTreeNode[]| Get selected nodes|
140
-
| insert(position: ICursorPosition, nodeModel: IPowerTreeNodeModel) | Insert nodes by the current cursor position.|
141
-
| remove(paths: number[][]) | Remove nodes by paths. For example `.remove([[0,1], [0,2]])`
142
-
| getFirstNode(): IPowerTreeNode | Get the first node in the tree|
143
-
| getLastNode(): IPowerTreeNode | Get the last node in the tree
144
-
| getNextNode(path: number[], filter?: (node: IPowerTreeNode<TDataType>) => boolean): IPowerTreeNode<TDataType>; | Get the next node. You can skip the next nodes by using `filter`
145
-
| getPrevNode(path: number[], filter?: (node: IPowerTreeNode<TDataType>) => boolean): IPowerTreeNode<TDataType>; | Get the previous node. You can skip the previous nodes by using `filter`
| getNode(path: number[]): IPowerTreeNode | Find the node by using its path |
135
+
| traverse(cb: (node: IPowerTreeNode, nodeModel: IPowerTreeNodeModel, siblings: IPowerTreeNodeModel[]) => boolean) | Helpful method to traverse all nodes. The traversing will be stopped if callback returns `false`. |
136
+
| updateNode(path: number[], patch: Partial<IPowerTreeNodeModel>) | Update the node by using its path |
137
+
| select(path: number[], addToSelection = false) | Select the node by using its path ||
138
+
| getNodeEl(): HTMLElement | Get the node HTMLElement by using its path |
139
+
| getSelected(): IPowerTreeNode[]| Get selected nodes |
140
+
| insert(position: ICursorPosition, nodeModel: IPowerTreeNodeModel) | Insert nodes by the current cursor position. |
141
+
| remove(paths: number[][]) | Remove nodes by paths. For example `.remove([[0,1], [0,2]])`
142
+
| getFirstNode(): IPowerTreeNode | Get the first node in the tree |
143
+
| getLastNode(): IPowerTreeNode | Get the last node in the tree
144
+
| getNextNode(path: number[], filter?: (node: IPowerTreeNode<TDataType>) => boolean): IPowerTreeNode<TDataType>; | Get the next node. You can skip the next nodes by using `filter`
145
+
| getPrevNode(path: number[], filter?: (node: IPowerTreeNode<TDataType>) => boolean): IPowerTreeNode<TDataType>; | Get the previous node. You can skip the previous nodes by using `filter`
0 commit comments