Skip to content

Block Group provides organization and functionality to multiple Block components.

Overview

Usage

  • Contain related Block components, most often within a Panel
  • Support dragEnabled workflows for Blocks

Sample

API reference

Properties

PropertyAttributeDescriptionTypeDefault
canPullWhen provided, the method will be called to determine whether the element can move from the component.(detail: BlockDragDetail) => boolean | "clone"
canPutWhen provided, the method will be called to determine whether the element can be added from another component.(detail: BlockDragDetail) => boolean
disableddisabledWhen true, interaction is prevented and the component is displayed with lower opacity.booleanfalse
dragEnableddrag-enabledWhen true, calcite-blocks are sortable via a draggable button.booleanfalse
groupgroupSpecifies the component's group identifier. To drag elements from one group into another, both groups must have the same group value.string | undefined
labelrequiredlabelSpecifies an accessible label for the component. When dragEnabled is true and multiple group sorting is enabled with group, specifies the component's name for dragging between groups.string
loadingloadingWhen true, a busy indicator is displayed.booleanfalse
scalescaleSpecifies the size of the component.Scale"m"
sortDisabledsort-disabledWhen true, and a group is defined, calcite-blocks are no longer sortable.booleanfalse

Slots

NameDescription
default (unnamed)A slot for adding calcite-block elements.

Events

NameDescriptionBehavior
calciteBlockGroupDragEndFires when the component's dragging has ended.bubblescomposed
calciteBlockGroupDragStartFires when the component's dragging has started.bubblescomposed
calciteBlockGroupMoveHalt
deprecatedin v3.3.0, removal target v6.0.0 - No longer necessary.
Fires when a user attempts to move an element using the sort menu and 'canPut' or 'canPull' returns falsy.
bubblescomposed
calciteBlockGroupOrderChangeFires when the component's item order changes.bubblescomposed

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.