Learn R Programming

calcite (version 0.1.0)

calcite_chip_group: Create a ChipGroup component

Description

Create a ChipGroup component

Usage

calcite_chip_group(...)

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
disableddisabledWhen true, interaction is prevented and the component is displayed with lower opacity.booleanTRUE
labellabelAccessible name for the component.stringFALSE
scalescaleSpecifies the size of the component. Child calcite-chips inherit the component's value."l" | "m" | "s"TRUE
selectedItemsNASpecifies the component's selected items.Check API referenceFALSE
selectionModeselection-modeSpecifies the selection mode of the component, where: "multiple" allows any number of selections, "single" allows only one selection, "single-persist" allows one selection and prevents de-selection, and "none" does not allow any selections."multiple" | "none" | "single" | "single-persist"TRUE

Events

The following events are observed by shiny:

EventDescription
calciteChipGroupSelectFires when the component's selection changes.

Slots

The following slots are provided by this component:

SlotDescription
Default (unnamed)A slot for adding one or more calcite-chips.

References

Official Documentation

Examples

Run this code
calcite_chip_group()

Run the code above in your browser using DataLab