Skip to content

@sqlrooms/mosaic / UseMosaicChartEditorReturn

Interface: UseMosaicChartEditorReturn ​

Return type for useMosaicChartEditor hook

Properties ​

state ​

state: MosaicEditorState


actions ​

actions: MosaicEditorActions


parsedSpec ​

parsedSpec: Spec | 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