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: README.md
+14-11Lines changed: 14 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -216,17 +216,18 @@ Data for rendering the tree select items. The object requires the following stru
216
216
217
217
```js
218
218
{
219
-
label, // required: Checkbox label
220
-
value, // required: Checkbox value
221
-
children, // optional: Array of child objects
222
-
checked, // optional: Initial state of checkbox. if true, checkbox is selected and corresponding pill is rendered.
223
-
disabled, // optional: Selectable state of checkbox. if true, the checkbox is disabled and the node is not selectable.
224
-
expanded, // optional: If true, the node is expanded (children of children nodes are not expanded by default unless children nodes also have expanded: true).
225
-
className, // optional: Additional css class for the node. This is helpful to style the nodes your way
226
-
tagClassName, // optional: Css class for the corresponding tag. Use this to add custom style the pill corresponding to the node.
227
-
actions, // optional: An array of extra action on the node (such as displaying an info icon or any custom icons/elements)
228
-
dataset, // optional: Allows data-* attributes to be set on the node and tag elements
229
-
...// optional: Any extra properties that you'd like to receive during `onChange` event
219
+
label, // required: Checkbox label
220
+
value, // required: Checkbox value
221
+
children, // optional: Array of child objects
222
+
checked, // optional: Initial state of checkbox. if true, checkbox is selected and corresponding pill is rendered.
223
+
disabled, // optional: Selectable state of checkbox. if true, the checkbox is disabled and the node is not selectable.
224
+
expanded, // optional: If true, the node is expanded (children of children nodes are not expanded by default unless children nodes also have expanded: true).
225
+
className, // optional: Additional css class for the node. This is helpful to style the nodes your way
226
+
tagClassName, // optional: Css class for the corresponding tag. Use this to add custom style the pill corresponding to the node.
227
+
actions, // optional: An array of extra action on the node (such as displaying an info icon or any custom icons/elements)
228
+
dataset, // optional: Allows data-* attributes to be set on the node and tag elements
229
+
isDefaultValue, // optional: Indicate if a node is a default value. When true, the dropdown will automatically select the node(s) when there is no other selected node. Can be used on more than one node.
230
+
...// optional: Any extra properties that you'd like to receive during `onChange` event
230
231
}
231
232
```
232
233
@@ -434,6 +435,8 @@ npm lint // fixes anything that can be fixed and reports remaining errors
434
435
npm run test:cov // test coverage
435
436
```
436
437
438
+
**Note:** If your browser doesn't hot reload or reflect changes during `npm run demo`, then delete `docs/bundle.js` and try again. Before submitting final PR, run `npm run build:docs` to build the bundle.js file again.
0 commit comments