Default selected elements in TreeView with checkbox #35
Unanswered
jeanquisquall
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi, first of all, thanks for the great work !
I'd like to use the
TreeView
component with checkboxes, is there a way to set some items selected by default?I tried to add
isSelected
option in thedata-tree-view-item
(andselected
class alongsidechecked
value on the checkbox), the items look selected in theHSTreeView
instance but the checkboxes are not checked or there are some issues with the parent node (not selected/indeterminate).If so, could you provide an example of how to implement it?
Thanks in advance for your help!
Beta Was this translation helpful? Give feedback.
All reactions