Content
View differences
Updated by Henriette Darge 9 months ago
**As** a developer
**I want to** restrict the selection mode of the tree view to single select
**so that** I can use the tree view for hierarchical selections, where only a single selection is allowed.
**Acceptance criteria**
**TreeView**
* There is The developer must be able to configure the tree view component to a new `select_variant` called `single` selection variant of type "single".
* This variant alows only one item If the tree view is set to be selected
single select, the filterable tree view must hide the "include subitems" option.
* If the tree view is set to single select and a user selects another item, the previous selected one must get deselected.
* The Tree View is still submittable via a form (submitting only Only one value)
* \[Open\]: Shall we still show checkboxes or rather click-to-select (see technical notes below) selection must be possible at any time.
**FilterableTreeView**
* If the tree view is set to single select, the filterable tree view must hide the "include subitems" option.
**Technical notes**
* Should we consider of NOT showing checkboxes? Should we maybe reuse the `current` state for the selection?
**I want to** restrict the selection mode of the tree view to single select
**so that** I can use the tree view for hierarchical selections, where only a single selection is allowed.
**Acceptance criteria**
**TreeView**
* There is
* This variant alows only one item
* \[Open\]: Shall we still show checkboxes or rather click-to-select (see technical notes below)
**FilterableTreeView**
* If the tree view is set to single select, the filterable tree view must hide the "include subitems" option.
**Technical notes**
* Should we consider of NOT showing checkboxes? Should we maybe reuse the `current` state for the selection?