Block Group provides organization and functionality to multiple Block components.
Overview
Sample
Usage
- Contain related Block components, most often within a Panel
- Support
dragworkflows for BlocksEnabled
API reference
Properties
| Property | Attribute | Description | Type | Default |
|---|---|---|---|---|
| canPull | When provided, the method will be called to determine whether the element can move from the component. | (detail: BlockDragDetail) => boolean | "clone" | ||
| canPut | When provided, the method will be called to determine whether the element can be added from another component. | (detail: BlockDragDetail) => boolean | ||
| disabled | disabled | When | boolean | false |
| dragEnabled | drag-enabled | When | boolean | false |
| group | group | Specifies the component's group identifier. To drag elements from one group into another, both groups must have the same group value. | string | undefined | |
| label | label | Specifies an accessible label for the component. When | string | |
| loading | loading | When | boolean | false |
| scale | scale | Specifies the size of the component. | Scale | "m" |
| sortDisabled | sort-disabled | When | boolean | false |
Slots
| Name | Description |
|---|---|
| default (unnamed) | A slot for adding |
Events
| Name | Description | Behavior |
|---|---|---|
| calciteBlockGroupDragEnd | Fires when the component's dragging has ended. | |
| calciteBlockGroupDragStart | Fires when the component's dragging has started. | |
| calciteBlockGroupMoveHalt | Fires when a user attempts to move an element using the sort menu and 'canPut' or 'canPull' returns falsy. | |
| calciteBlockGroupOrderChange | Fires when the component's item order changes. |
Methods
| Name | Description | Signature |
|---|---|---|
| componentOnReady | Creates a promise that resolves once the component is fully loaded. | componentOnReady(): Promise<this> |
| setFocus | Sets focus on the component's first focusable element. | setFocus(options?: FocusOptions): Promise<void> |