Learn R Programming

calcite (version 0.1.0)

calcite_tree: Create a Tree component

Description

Create a Tree component

Usage

calcite_tree(...)

Value

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

Arguments

...

named attributes passed to htmltools::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.

References

Official Documentation

Examples

Run this code
calcite_tree()

Run the code above in your browser using DataLab