Skip to contents

Create a Sheet component

Usage

calcite_sheet(...)

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
displayModedisplay-modeSpecifies the display mode - "float" (content is separated detached), or "overlay" (displays on top of center content)."float" | "overlay"TRUE
escapeDisabledescape-disabledWhen true, disables the default close on escape behavior.booleanTRUE
focusTrapDisabledfocus-trap-disabledWhen true, prevents focus trapping.booleanTRUE
heightheightSpecifies the height of the component."l" | "m" | "s"TRUE
heightScaleheight-scaleWhen position is "block-start" or "block-end", specifies the height of the component."l" | "m" | "s"TRUE
labellabelSpecifies the label of the component.stringFALSE
messageOverridesNAUse this property to override individual strings used by the component.Check API referenceFALSE
openopenWhen true, displays and positions the component.booleanTRUE
outsideCloseDisabledoutside-close-disabledWhen true, disables the closing of the component when clicked outside.booleanTRUE
positionpositionDetermines where the component will be positioned."block-end" | "block-start" | "inline-end" | "inline-start"TRUE
resizableresizableWhen true, the component is resizable.booleanTRUE
widthwidthSpecifies the width of the component."l" | "m" | "s"TRUE
widthScalewidth-scaleWhen position is "inline-start" or "inline-end", specifies the width of the component."l" | "m" | "s"TRUE

Events

The following events are observed by shiny:

EventDescription
calciteSheetBeforeCloseFires when the component is requested to be closed and before the closing transition begins.
calciteSheetBeforeOpenFires when the component is added to the DOM but not rendered, and before the opening transition begins.
calciteSheetCloseFires when the component is closed and animation is complete.
calciteSheetOpenFires when the component is open and animation is complete.

Examples

calcite_sheet()
#> <calcite-sheet></calcite-sheet>