Skip to content

Overview

Action Group organizes and groups Actions housed in an Action Bar or Action Pad.

API reference

Properties

PropertyAttributeDescriptionTypeDefault
columnscolumnsSpecifies the number of columns.Columns
expandedexpandedWhen true, expands the component and its contents.booleanfalse
labellabelSpecifies an accessible label for the component.string
menuFlipPlacementsSpecifies the component's fallback menuPlacement when it's initial or specified menuPlacement has insufficient space available.FlipPlacement[]
menuOpenmenu-openWhen true, the calcite-action-menu is open.booleanfalse
menuPlacementmenu-placementSpecifies the position of the action menu.LogicalPlacement
messageOverridesOverrides individual strings used by the component.Record<string, unknown> | undefined
overlayPositioningoverlay-positioningSpecifies the type of positioning to use for overlaid content, where: "absolute" works for most cases - positioning the component inside of overflowing parent containers, which affects the container's layout, and "fixed" is used to escape an overflowing parent container, or when the reference element's position CSS property is "fixed".OverlayPositioning"absolute"
scalescaleSpecifies the size of the calcite-action-menu.Scale"m"
selectionModeselection-modeSpecifies the selection mode of the component, where: "multiple" allows any number of selections, "single" allows only one selection, "single-persist" allows one selection and prevents de-selection, and "none" disables selection (default).Extract<"single" | "single-persist" | "multiple" | "none", SelectionMode>"none"
topLayerDisabledtop-layer-disabledWhen true and the component is open, disables top layer placement. Only set this if you need complex z-index control or if top layer placement causes conflicts with third-party components.booleanfalse

Slots

NameDescription
default (unnamed)A slot for adding calcite-actions.
menu-actionsA slot for adding an overflow menu with calcite-actions inside a calcite-dropdown.
menu-tooltipA slot for adding a calcite-tooltip for the menu.

Styles

NameDescription
--calcite-action-background-colorSpecifies the component's background color.
--calcite-action-group-border-colorSpecifies the component's border color when used in a calcite-action-bar or calcite-action-menu.
--calcite-action-group-columnsWhen layout is "grid", specifies the component's grid-template-columns.
--calcite-action-group-gapWhen layout is "grid", specifies the component's gap.

Methods

NameDescriptionSignature
componentOnReadyCreate a promise that resolves once component is fully loaded.componentOnReady(): Promise<this>
setFocusSets focus on the component's first focusable element.setFocus(options?: FocusOptions): Promise<void>

Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.