-
Notifications
You must be signed in to change notification settings - Fork 77
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(block-group, block): add block-group component #11319
base: dev
Are you sure you want to change the base?
Conversation
packages/calcite-components/src/components/block-group/block-group.scss
Outdated
Show resolved
Hide resolved
I could see the waters muddying between the components if we allowed that.. Not to say it won't be requested in the future - but I don't know if this first version needs to support nesting like that - just parent level Block adjustment. |
Related Issue: #10382
Summary
calcite-block-group
calcite-block
elementscalcite-block
calcite-sort-handle
instead ofcalcite-handle
dragDisabled
sortHandleOpen
calcite-sort-handle
opening/closingcalciteBlockSortHandleBeforeClose
calciteBlockSortHandleBeforeOpen
calciteBlockSortHandleClose
calciteBlockSortHandleOpen
calcite-sort-handle
to work without asetSize
andsetPosition
for use withcalcite-sortable-list
.Notes:
calcite-sortable-list
withcalcite-block
will no longer just work. A user would need to set thecalcite-sortable-list
'shandleSelector
property to becalcite-sort-handle
instead ofcalcite-handle
.BlockGroup API Documentation
Properties
canPull
(detail: BlockDragDetail) => boolean
canPut
(detail: BlockDragDetail) => boolean
disabled
boolean
false
true
true
, interaction is prevented and the component is displayed with lower opacity.dragEnabled
boolean
false
true
true
,calcite-block
s are sortable via a draggable button.group
string
label
string
dragEnabled
istrue
and multiple block-group sorting is enabled withgroup
, specifies the component's name for dragging between block-groups.true
loading
boolean
false
true
true
, a busy indicator is displayed.Methods
setFocus
void