Skip to contents

Create a FlowItem component

Usage

calcite_flow_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
beforeBackNAWhen provided, the method will be called before it is removed from its parent calcite-flow.Check API referenceFALSE
beforeCloseNAPasses a function to run before the component closes.Check API referenceFALSE
closableclosableWhen true, displays a close button in the trailing side of the component's header.booleanTRUE
closedclosedWhen true, the component will be hidden.booleanTRUE
collapsedcollapsedWhen true, hides the component's content area.booleanTRUE
collapsiblecollapsibleWhen true, the component is collapsible.booleanTRUE
descriptiondescriptionA description for the component.stringFALSE
disableddisabledWhen true, interaction is prevented and the component is displayed with lower opacity.booleanTRUE
headingheadingThe component header text.stringFALSE
headingLevelheading-levelSpecifies the heading level of the component's heading for proper document structure, without affecting visual styling.1 | 2 | 3 | 4 | 5 | 6TRUE
loadingloadingWhen true, a busy indicator is displayed.booleanTRUE
menuOpenmenu-openWhen true, the action menu items in the header-menu-actions slot are open.booleanTRUE
messageOverridesNAUse this property to override individual strings used by the component.Check API referenceFALSE
overlayPositioningoverlay-positioningDetermines the type of positioning to use for the overlaid content. Using "absolute" will work for most cases. The component will be positioned inside of overflowing parent containers and will affect the container's layout. "fixed" should be used to escape an overflowing parent container, or when the reference element's position CSS property is "fixed"."absolute" | "fixed"TRUE
scalescaleSpecifies the size of the component."l" | "m" | "s"TRUE
selectedselectedWhen true, flow-item is displayed within a parent flow.booleanTRUE
showBackButtonshow-back-buttonWhen true, displays a back button in the component's header.booleanFALSE

Events

The following events are observed by shiny:

EventDescription
calciteFlowItemBackFires when the back button is clicked.
calciteFlowItemCloseFires when the close button is clicked.
calciteFlowItemScrollFires when the content is scrolled.
calciteFlowItemToggleFires when the collapse button is clicked.

Slots

The following slots are provided by this component:

SlotDescription
Default (unnamed)A slot for adding custom content.
action-barA slot for adding a calcite-action-bar to the component.
alertsA slot for adding calcite-alerts to the component.
content-topA slot for adding content above the unnamed (default) slot and below the action-bar slot (if populated).
content-bottomA slot for adding content below the unnamed (default) slot and above the footer slot (if populated)
header-actions-startA slot for adding calcite-actions or content to the start side of the component's header.
header-actions-endA slot for adding calcite-actions or content to the end side of the component's header.
header-contentA slot for adding custom content to the component's header.
header-menu-actionsA slot for adding an overflow menu with calcite-actions inside a calcite-dropdown.
fabA slot for adding a calcite-fab (floating action button) to perform an action.
footerA slot for adding custom content to the component's footer. Should not be used with the "footer-start" or "footer-end" slots.
footer-actionsDeprecated Use the "footer" slot instead. A slot for adding calcite-buttons to the component's footer.
footer-endA slot for adding a trailing footer custom content. Should not be used with the "footer" slot.
footer-startA slot for adding a leading footer custom content. Should not be used with the "footer" slot.

Examples

calcite_flow_item()
#> <calcite-flow-item></calcite-flow-item>