OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub
Ruby agile-developmentangularbcfboardsbug-trackerganttgantt-chartifcissue-trackerjira-alternativekanbanopenprojectproduct-managementproject-managementproject-planningroadmaprubyscrumtimelineworkflows
Small adjustments to TreeView docs
Henriette Darge437d7981a301
diff --git a/lookbook/docs/components/tree-view.md.erb b/lookbook/docs/components/tree-view.md.erbindex 097f2c5b81d..797d3f25d90 100644--- a/lookbook/docs/components/tree-view.md.erb+++ b/lookbook/docs/components/tree-view.md.erb@@ -16,7 +16,7 @@ Basically, we follow Primer's specification of a TreeView:4. Nesting level indicator lines: Each line represents a level of nesting depth5. Leading action (optional): An IconButton to allow interaction with the node besides activating or expanding6. Leading visual (optional): A visual cue for additional context-7. Node label: The text label for the node or leaf+7. Node label: The text label for the node8. Trailing visual (optional): Same as a leading visual, but placed to the right of all other element### Multi-select@@ -26,10 +26,10 @@ In addition to Primer's guidelines, we introduced an option called `select_varia* `none` (default)* `multiple`: Whe `multiple` is chosen, there is a checkbox rendered between the leading action and the leading visual to afford multi-selection-Further, in multi-select mode, a `selection_strategy` can also be configured. This influences the influence checking a parent has on its children:+Further, in multi-select mode, a `selection_strategy` can also be configured. This determines the influence checking a parent has on its children:* `descendants` (default): Checking a parent will automatically select all children. Subsequently deselecting any child will then leave the parent in a so called "mixed" state-* `self`: Checking a parent does not affect the children (and vice-versa); every or leaf node behaves independently of others+* `self`: Checking a parent does not affect the children (and vice-versa); every leaf or node behaves independently of others<%= embed OpenProject::Common::TreeViewPreview, :multi_select, panels: %i[params] %>@@ -38,7 +38,7 @@ Further, in multi-select mode, a `selection_strategy` can also be configured. ThWe support two loading strategies:* static (default): All items are loaded when the component is rendered-* dynamic: Sub-nodes are loaded from the server as soon as a node is expanded+* dynamic: Sub-nodes are loaded from the server as soon as a node is expanded. Please note, that this option is currently not available in combination with the `select_variant: :multiple`.For more examples have a look [here](../../inspect/primer/open_project/file_tree_view/loading_skeleton).@@ -51,12 +51,12 @@ There is a special component called `FileTreeView` which is a pre-configured `Tr## Best practices**Do**-- Use the simplest component as far possible ('self' selection strategy, static loading strategy)+- Use the simplest component as far possible ('self' selection strategy, static loading strategy)- Before using a basic TreeView with multi-select, check if related components like FilterableTreeView are more suited to your use case**Don't**-- Don't use multi-select mode dynamic loading; multi-select requires static loading+- Don't use multi-select mode with a dynamic loading strategy; multi-select requires static loading## Used in