calcite-design-system icon indicating copy to clipboard operation
calcite-design-system copied to clipboard

Enhancement: [calcite-tree] add selection-mode "none"

Open caripizza opened this issue 3 years ago • 7 comments

Description

Support a calcite-tree selection-mode of "none", for displaying a hierarchical list of tree-items which display no icons on hover/focus, and do not allow any items to be selected.

Acceptance Criteria

A new selection-mode of "none" is added to the TreeSelectionMode type values. When a tree has selection-mode "none", no child tree-items can be selected, and no icons appear on :hover or :focus.

Relevant Info

Related issue tied to this request: #2210 (cc @bpatterson88)

Which Component

calcite-tree, calcite-tree-item

Example Use Case

(See screenshots provided in #2210)

caripizza avatar Sep 28 '21 16:09 caripizza

Here's one example I found in the wild of "none" selection-mode with IntegralUI's TreeView component for Angular: https://www.lidorsystems.com/support/articles/angular/treeview/treeview-multi-select.aspx

caripizza avatar Sep 28 '21 16:09 caripizza

This implementation from SAP also uses "none": https://sap.github.io/ui5-webcomponents/playground/components/Tree/

macandcheese avatar Sep 28 '21 17:09 macandcheese

Use case for Dashboards: We are using a tree to represent the layout of the elements in the dashboard. The tree does not need a selection state. Clicking a tree item should place focus on that item but not otherwise change its state. Tree items don't need bullet point and instead child items have a custom icon. image

ellenupp avatar Sep 28 '21 18:09 ellenupp

Please add your planning poker estimate with ZenHub @caripizza

jcfranco avatar Oct 13 '21 21:10 jcfranco

We also have a use case for this. Seems pretty straight forward, I could try to add this?

paulcpederson avatar Jul 19 '22 15:07 paulcpederson

Sure, @paulcpederson, we always appreciate your help!

benelan avatar Jul 19 '22 23:07 benelan

Stealing this one... 👿

jcfranco avatar Aug 10 '22 17:08 jcfranco

Installed and assigned for verification.

github-actions[bot] avatar Aug 16 '22 19:08 github-actions[bot]

Verified in beta.92 👍🏻

geospatialem avatar Aug 18 '22 14:08 geospatialem