Skip to contents

Create a Tree component

Usage

calcite_tree(...)

Arguments

...

named attributes passed to htmltools::tag()

Value

an object of class calcite_component which is a subclass of shiny.tag

Details

Properties

The following properties are provided by this component:

NameAttributeDescriptionValuesReflects to Attribute
lineslinesWhen true, displays indentation guide lines.booleanTRUE
scalescaleSpecifies the size of the component."l" | "m" | "s"TRUE
selectedItemsNASpecifies the component's selected items.Check API referenceFALSE
selectionModeselection-modeSpecifies the selection mode of the component, where: "ancestors" displays with a checkbox and allows any number of selections from corresponding parent and child selections, "children" allows any number of selections from one parent from corresponding parent and child selections, "multichildren" allows any number of selections from corresponding parent and child selections, "multiple" allows any number of selections, "none" allows no selections, "single" allows one selection, and "single-persist" allows and requires one selection."ancestors" | "children" | "multichildren" | "multiple" | "none" | "single" | "single-persist"TRUE

Events

The following events are observed by shiny:

EventDescription
calciteTreeSelectFires when the user selects/deselects calcite-tree-items.

Slots

The following slots are provided by this component:

SlotDescription
Default (unnamed)A slot for calcite-tree-item elements.

Examples

calcite_tree()
#> <calcite-tree></calcite-tree>