@@ -89,24 +89,25 @@ All node objects **must** have a unique `value`. This value is serialized into t
8989
9090### Properties
9191
92- | Property | Type | Description | Default |
93- | -------------------- | -------- | ------------------------------------------------------------------------------------------------ | ----------- |
94- | ` nodes ` | array | ** Required** . Specifies the tree nodes and their children. | |
95- | ` checked ` | array | An array of checked node values. | ` [] ` |
96- | ` disabled ` | bool | If true, the component will be disabled and nodes cannot be checked. | ` false ` |
97- | ` expandDisabled ` | bool | If true, the ability to expand nodes will be disabled. | ` false ` |
98- | ` expandOnClick ` | bool | If true, nodes will be expanded by clicking on labels. Requires a non-empty ` onClick ` function. | ` false ` |
99- | ` expanded ` | array | An array of expanded node values. | ` [] ` |
100- | ` name ` | string | Optional name for the hidden ` <input> ` element. | ` undefined ` |
101- | ` nameAsArray ` | bool | If true, the hidden ` <input> ` will encode its values as an array rather than a joined string. | ` false ` |
102- | ` nativeCheckboxes ` | bool | If true, native browser checkboxes will be used instead of pseudo-checkbox icons. | ` false ` |
103- | ` noCascade ` | bool | If true, toggling a parent node will ** not** cascade its check state to its children. | ` false ` |
104- | ` onlyLeafCheckboxes ` | bool | If true, checkboxes will only be shown for leaf nodes. | ` false ` |
105- | ` optimisticToggle ` | bool | If true, toggling a partially-checked node will select all children. If false, it will deselect. | ` true ` |
106- | ` showNodeIcon ` | bool | If true, each node will show a parent or leaf icon. | ` true ` |
107- | ` onCheck ` | function | onCheck handler: ` function(checked) {} ` | ` () => {} ` |
108- | ` onClick ` | function | onClick handler: ` function(clicked) {} ` . If set, it will be called when clicked on a node label. | ` () => {} ` |
109- | ` onExpand ` | function | onExpand handler: ` function(expanded) {} ` | ` () => {} ` |
92+ | Property | Type | Description | Default |
93+ | -------------------- | -------- | ---------------------------------------------------------------------------------------------------------------------- | ----------- |
94+ | ` nodes ` | array | ** Required** . Specifies the tree nodes and their children. | |
95+ | ` checked ` | array | An array of checked node values. | ` [] ` |
96+ | ` disabled ` | bool | If true, the component will be disabled and nodes cannot be checked. | ` false ` |
97+ | ` expandDisabled ` | bool | If true, the ability to expand nodes will be disabled. | ` false ` |
98+ | ` expandOnClick ` | bool | If true, nodes will be expanded by clicking on labels. Requires a non-empty ` onClick ` function. | ` false ` |
99+ | ` icons ` | object | Nodes for ` check ` , ` uncheck ` , ` halfCheck ` , ` expandClose ` , ` expandOpen ` , ` parentClose ` , ` parentOpen ` , and ` leaf ` icons. | { ... } |
100+ | ` expanded ` | array | An array of expanded node values. | ` [] ` |
101+ | ` name ` | string | Optional name for the hidden ` <input> ` element. | ` undefined ` |
102+ | ` nameAsArray ` | bool | If true, the hidden ` <input> ` will encode its values as an array rather than a joined string. | ` false ` |
103+ | ` nativeCheckboxes ` | bool | If true, native browser checkboxes will be used instead of pseudo-checkbox icons. | ` false ` |
104+ | ` noCascade ` | bool | If true, toggling a parent node will ** not** cascade its check state to its children. | ` false ` |
105+ | ` onlyLeafCheckboxes ` | bool | If true, checkboxes will only be shown for leaf nodes. | ` false ` |
106+ | ` optimisticToggle ` | bool | If true, toggling a partially-checked node will select all children. If false, it will deselect. | ` true ` |
107+ | ` showNodeIcon ` | bool | If true, each node will show a parent or leaf icon. | ` true ` |
108+ | ` onCheck ` | function | onCheck handler: ` function(checked) {} ` | ` () => {} ` |
109+ | ` onClick ` | function | onClick handler: ` function(clicked) {} ` . If set, it will be called when clicked on a node label. | ` () => {} ` |
110+ | ` onExpand ` | function | onExpand handler: ` function(expanded) {} ` | ` () => {} ` |
110111
111112#### Node Properties
112113
0 commit comments