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: docsrc/demos.md
+10-10Lines changed: 10 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -297,7 +297,7 @@ Support for checkboxes and radio buttons is built into the treeview.
297
297
298
298
To create a checkbox node, specify `input.type = 'checkbox'` on the node's `treeNodeSpec`. To initialize the node as checked, specify `state.input.value = true`.
299
299
300
-
To create a radio button node, specify `input.type = 'radio'` on the node's `treeNodeSpec`, give the node a name using the `input.name` property, and give the node a value using `input.value`. The name will determine the radio button group to which the radio button belongs. The values of the selected radio button within each group are stored at the tree level in the `radioGroupValues`, which is an object that maps the name for a group of radio buttons to the selected node's value. To initialize a node as checked pass a `radioGroupValues` object to the tree with the format `{ matchesGroupInputNameProp: 'matchesNodeInputValueProp'}`.
300
+
To create a radio button node, specify `input.type = 'radio'` on the node's `treeNodeSpec`, give the node a name using the `input.name` property, and give the node a value using `input.value`. The name will determine the radio button group to which the radio button belongs. To initialize a node as checked set the node's `input.isInitialRadioGroupValue` to `true`. If multiple nodes within a radio button group are specified as `isInitialRadioGroupValue`, the last one in wins.
301
301
302
302
The convenience methods `getCheckedRadioButtons` and `getCheckedCheckboxes` are exposed on the tree component to make it easy to get the nodes that have been checked.
303
303
@@ -306,15 +306,15 @@ The convenience methods `getCheckedRadioButtons` and `getCheckedCheckboxes` are
0 commit comments