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
refactor: Update mode to include hierarchical (#251)
BREAKING: `hierarchical` prop
`hierarchical` prop is now moved under `mode` prop.
```
// before
<DropdownTreeSelect data={data} hierarchical={true} />
// after
<DropdownTreeSelect data={data} mode="hierarchical" />
```
Copy file name to clipboardExpand all lines: README.md
+8-1Lines changed: 8 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -51,6 +51,7 @@ A lightweight and fast control to render a select component that can display hie
51
51
-[keepOpenOnSelect](#keepopenonselect)
52
52
-[mode](#mode)
53
53
-[multiSelect](#multiSelect)
54
+
-[hierarchical](#hierarchical)
54
55
-[simpleSelect](#simpleSelect)
55
56
-[radioSelect](#radioSelect)
56
57
-[showPartiallySelected](#showpartiallyselected)
@@ -327,7 +328,13 @@ Defines how the dropdown is rendered / behaves
327
328
328
329
#### multiSelect
329
330
330
-
This is the default mode. A multi selectable dropdown which supports hierarchical data.
331
+
A multi selectable dropdown which supports tree data with parent-child relationships. This is the default mode.
332
+
333
+
#### hierarchical
334
+
335
+
A multi selectable dropdown which supports tree data **without** parent-child relationships. In this mode, selecting a node has no ripple effects on its descendants or ancestors. Subsequently, `showPartiallySelected` becomes a moot flag and has no effect as well.
336
+
337
+
⚠️ Note that `hierarchical=true` negates/overrides `showPartiallySelected`.
0 commit comments