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
Copy file name to clipboardExpand all lines: docs/assets/demo/en/table-type/list-table-tree-lazy-load.md
+6Lines changed: 6 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -17,6 +17,8 @@ Basic table tree display, turn on the tree mode of a certain column, if the chil
17
17
- children: true Set to enable tree display on a certain row of data and lazily load child node data
18
18
- setRecordChildren(children: any[], col: number, row: number) Call this method after lazily loading child node data in a row of data and return it to the table component
19
19
- TREE_HIERARCHY_STATE_CHANGE tree display state change events
20
+
- cellType: 'checkbox' Turns on the checkbox. Use it with tree:true to display the checkbox in a tree format.
21
+
- enableCheckboxCascade: true It is used globally to turn on the checkbox cascade. It must be used with cellType: 'checkbox' and tree:true to synchronize the parent and child element selections.
20
22
21
23
## Code Demo
22
24
@@ -184,6 +186,9 @@ const option = {
184
186
columns: [
185
187
{
186
188
field:'category',
189
+
// Supports checkbox tree display.
190
+
// To synchronize parent and child element checkboxes, be sure to configure enableCheckboxCascade: true in the option global configuration.
0 commit comments