Skip to content

@sqlrooms/ai / CreateAskAiBlockHeaderActionOptions

Type Alias: CreateAskAiBlockHeaderActionOptions

CreateAskAiBlockHeaderActionOptions = object

Properties

supportsAiEditing

supportsAiEditing: (blockType) => boolean

Interim gate for which block types show Ask AI. Stage 6 of the sharing plan replaces this with a per-block-type registry.

Parameters

ParameterType
blockTypestring

Returns

boolean


onSubmit

onSubmit: (ctx, prompt) => void

Parameters

ParameterType
ctxAskAiBlockHeaderActionRenderContext
promptstring

Returns

void


label?

optional label?: string


placeholder?

optional placeholder?: string


popoverProps?

optional popoverProps?: Omit<BlockAiPromptPopoverProps, "trigger" | "onSubmit" | "label" | "placeholder">