Skip to content

Block Group

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 present, interaction is prevented and the component is displayed with lower opacity.booleanfalse
dragEnableddrag-enabledWhen present, calcite-blocks are sortable via a draggable button.booleanfalse
groupgroupThe block-group's group identifier. To drag elements from one group into another, both groups must have the same group value.string
labelrequiredlabelSpecifies an accessible name 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 present, a busy indicator is displayed.booleanfalse
scalescaleSpecifies the size of the component."l" | "m" | "s""m"
sortDisabledsort-disabledWhen present, 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
deprecatedNo 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<void>
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.