[isTreeTable]
Whether tree mode enabled or no.[relationKey]
Name of the field in the object which contains children nodes.Tree table supports mouse Drag & Drop by default, so rows can be moved & placed inside other rows.
+
+ Drag & Drop events are simply client-side events and any desired backend changes must be handled by catching the
+ (rowsRearrange)
event.
+
+ Drag and drop is available via keyboard by focusing a row or cell, holding the alt/option key and using the up + or down arrows. +
++ By default, keyboard drag & drop works in shift mode, which means that focused item will ne moved on the same + level as it's siblings. +
++ By pressing alt/option + shift key, drag & drop will use 'group' mode with the next sibling based on the + direction of drag & drop. +
+Drag and drop can be disabled by setting the [enableRowReordering]
input to false
.
+ Additionally, developers can pass custom [dropPredicate]
and
+ [dragoverPredicate]
functions to allow/disallow drop on particular row.
+
+ More info on [dropPredicate]
and [dragoverPredicate]
can be found on
+ CDK page
+
+ Tree can be initialized and and its state can be controlled by the application. In order to do this tree needs
+ be instantiated using TableRow
interface, where application set initial state. Selection can be set
+ by using the [selectedKey]
and [selectableKey]
inputs. See
+ row selection for more information.
+
+ You can also set [enableTristateMode]
, to propagate selection from children to parents and parent
+ to children.
+
+ Tree row expansion can be handled by using the [expandedStateKey]
input. The table also has the
+ [expandOnInit]
boolean input which will expand all rows when the table first loads.
+
[isTreeTable]
Whether tree mode enabled or no.[relationKey]
Name of the field in the object which contains children nodes.Tree table supports mouse Drag & Drop by default, so rows can be moved & placed inside other rows.
-
- Drag & Drop events are simply client-side events and any desired backend changes must be handled by catching the
- (rowsRearrange)
event.
-
- Drag and drop is available via keyboard by focusing a row or cell, holding the alt/option key and using the up - or down arrows. -
-- By default, keyboard drag & drop works in shift mode, which means that focused item will ne moved on the same - level as it's siblings. -
-- By pressing alt/option + shift key, drag & drop will use 'group' mode with the next sibling based on the - direction of drag & drop. -
-Drag and drop can be disabled by setting the [enableRowReordering]
input to false
.
- Additionally, developers can pass custom [dropPredicate]
and
- [dragoverPredicate]
functions to allow/disallow drop on particular row.
-
- More info on [dropPredicate]
and [dragoverPredicate]
can be found on
- CDK page
-
- Tree can be initialized and and its state can be controlled by the application. In order to do this tree needs
- be instantiated using TableRow
interface, where application set initial state.
-
- You can also set [enableTristateMode]
, to propagate selection from children to parents and parent
- to children.
-