Skip to contents

Create a Panel component

Usage

calcite_panel(...)

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
beforeCloseNAPasses a function to run before the component closes.Check API referenceFALSE
closableclosableWhen true, displays a close button in the trailing side of the 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
menuFlipPlacementsNASpecifies the component's fallback menu placement when it's initial or specified placement has insufficient space available.Check API referenceFALSE
menuOpenmenu-openWhen true, the action menu items in the header-menu-actions slot are open.booleanTRUE
menuPlacementmenu-placementDetermines where the action menu will be positioned."auto" | "auto-end" | "auto-start" | "bottom" | "bottom-end" | "bottom-start" | "leading" | "leading-end" | "leading-start" | "left" | "left-end" | "left-start" | "right" | "right-end" | "right-start" | "top" | "top-end" | "top-start" | "trailing" | "trailing-end" | "trailing-start"TRUE
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

Events

The following events are observed by shiny:

EventDescription
calcitePanelCloseFires when the close button is clicked.
calcitePanelScrollFires when the content is scrolled.
calcitePanelToggleFires 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-bottomA slot for adding content below the unnamed (default) slot and above the footer slot (if populated)
content-topA slot for adding content above the unnamed (default) slot and below the action-bar slot (if populated).
header-actions-startA slot for adding actions or content to the start side of the header.
header-actions-endA slot for adding actions or content to the end side of the header.
header-contentA slot for adding custom content to the header.
header-menu-actionsA slot for adding an overflow menu with 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-start and footer-end slots 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_panel()
#> <calcite-panel></calcite-panel>