Skip to contents

Create a TabTitle component

Usage

calcite_tab_title(...)

Arguments

...

named attributes passed to htmltools::tag()

Value

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

Details

Tab-titles are optionally individually closable.

Properties

The following properties are provided by this component:

NameAttributeDescriptionValuesReflects to Attribute
closableclosableWhen true, a close button is added to the component.booleanTRUE
closedclosedWhen true, does not display or position the component.booleanTRUE
disableddisabledWhen true, interaction is prevented and the component is displayed with lower opacity.booleanTRUE
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
messageOverridesNAUse this property to override individual strings used by the component.Check API referenceFALSE
positionpositionSpecifies the position of calcite-tab-nav and calcite-tab-title components in relation to, and is inherited from the parent calcite-tabs, defaults to top. @internal"bottom" | "top"FALSE
selectedselectedWhen true, the component and its respective calcite-tab contents are selected. Only one tab can be selected within the calcite-tabs parent.booleanTRUE
tabtabSpecifies a unique name for the component. When specified, use the same value on the calcite-tab.stringTRUE

Events

The following events are observed by shiny:

EventDescription
calciteTabsActivateFires when a calcite-tab is selected.
calciteTabsCloseFires when a calcite-tab is closed.

Slots

The following slots are provided by this component:

SlotDescription
Default (unnamed)A slot for adding text.

Examples

calcite_tab_title()
#> <calcite-tab-title></calcite-tab-title>