Skip to content

@sqlrooms/mosaic / ChartBuilderDialogProps

Interface: ChartBuilderDialogProps

Properties

open

open: boolean

Whether the dialog is open


onOpenChange()

onOpenChange: (open) => void

Callback when dialog open state changes

Parameters

ParameterType
openboolean

Returns

void


tableName

tableName: string

Table name to use in generated specs


columns

columns: ChartBuilderColumn[]

Available columns for field selectors


onCreateChart()

onCreateChart: (spec, title) => void

Callback when a chart spec is created

Parameters

ParameterType
specSpec
titlestring

Returns

void


builders?

optional builders: ChartBuilderTemplate[]

Custom builders (defaults to all built-in builders)