Skip to content

@sqlrooms/documents / BlockSettingsSliceState

Type Alias: BlockSettingsSliceState

BlockSettingsSliceState = object

State shape for the block settings slice

Properties

blockSettings

blockSettings: object

NameTypeDescription
configBlockSettingsSliceConfig-
runtime{ selectedBlock?: SelectedBlock; isSettingsPanelOpen: boolean; settingsPanelOpenRequest: number; }-
selectBlock()(block) => voidSelect a block
requestOpenSettingsPanel()() => voidRequest the host settings panel to open
requestCloseSettingsPanel()() => voidRequest the host settings panel to close
setSettingsPanelOpen()(isOpen) => voidSynchronize host settings panel visibility
clearSelection()() => voidClear the current selection
isBlockSelected()(type, id, dashboardId?) => booleanCheck if a specific block is selected
clearSelectionIfBlockDeleted()(blockId) => voidClear selection if a block is deleted