Skip to contents

Create a TreeItem component

Usage

calcite_tree_item(...)

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
disableddisabledWhen true, interaction is prevented and the component is displayed with lower opacity.booleanTRUE
expandedexpandedWhen true, the component is expanded.booleanTRUE
iconFlipRtlicon-flip-rtlWhen true, the icon will be flipped when the element direction is right-to-left ("rtl")."both" | "end" | "start"TRUE
iconStarticon-startSpecifies an icon to display at the start of the component.stringTRUE
labellabelAccessible name for the component.stringFALSE
selectedselectedWhen true, the component is selected.booleanTRUE

Slots

The following slots are provided by this component:

SlotDescription
Default (unnamed)A slot for adding text.
childrenA slot for adding nested calcite-tree elements.
actions-endA slot for adding actions to the end of the component. It is recommended to use two or fewer actions.

Examples

calcite_tree_item()
#> <calcite-tree-item></calcite-tree-item>