@sqlrooms/deck / DeckMapBlockDocumentRegistrationOptions
Type Alias: DeckMapBlockDocumentRegistrationOptions<TState>
DeckMapBlockDocumentRegistrationOptions<
TState> =object
Options for configuring Deck map block document registration. Hosts pass these to createDeckMapBlockDocumentType / createDeckMapBlockDocumentCommandType.
Type Parameters
| Type Parameter |
|---|
TState |
Properties
label?
optionallabel?:string
Product label for the map block (defaults to "Map").
description?
optionaldescription?:string
Description shown in block pickers.
defaultTitle?
optionaldefaultTitle?:string
Default caption/title used when ensuring state.
defaultHeight?
optionaldefaultHeight?:number
Default height in pixels for the map block.
minHeight?
optionalminHeight?:number
Minimum resizable height in pixels.
maxHeight?
optionalmaxHeight?:number
Maximum resizable height in pixels.
afterEnsureState?
optionalafterEnsureState?: (options) =>void
Called after Deck map state is ensured. Hosts can add product-specific side effects; delete/remove stays host-owned.
Parameters
| Parameter | Type |
|---|---|
options | { state: TState; blockInstanceId: string; title: string; } |
options.state | TState |
options.blockInstanceId | string |
options.title | string |
Returns
void