Skip to content

@sqlrooms/vega / UseVegaChartEditorReturn

Interface: UseVegaChartEditorReturn

Return type for useVegaChartEditor hook

Properties

state

state: VegaEditorState


actions

actions: VegaEditorActions


parsedSpec

parsedSpec: VisualizationSpec | null

Parsed spec ready for rendering (null if parse error)


canApply

canApply: boolean

Whether apply button should be enabled


hasChanges

hasChanges: boolean

Whether there are any unsaved changes