Skip to contents

Create a DropdownItem component

Usage

calcite_dropdown_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
hrefhrefSpecifies the URL of the linked resource, which can be set as an absolute or relative path. Determines if the component will render as an anchor.stringTRUE
iconEndicon-endSpecifies an icon to display at the end of the component.stringTRUE
iconFlipRtlicon-flip-rtlDisplays the iconStart and/or iconEnd as 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
relrelSpecifies the relationship to the linked document defined in href.stringTRUE
selectedselectedWhen true, the component is selected.booleanTRUE
targettargetSpecifies the frame or window to open the linked document.stringTRUE

Events

The following events are observed by shiny:

EventDescription
calciteDropdownItemSelectFires when the component is selected.

Slots

The following slots are provided by this component:

SlotDescription
Default (unnamed)A slot for adding text.

Examples

calcite_dropdown_item()
#> <calcite-dropdown-item></calcite-dropdown-item>