Skip to content

@sqlrooms/vega / VegaEditorContextValue

Interface: VegaEditorContextValue ​

Context value provided by VegaLiteChart.Container

Properties ​

state ​

state: VegaEditorState


actions ​

actions: VegaEditorActions


editable ​

editable: boolean

Whether editing is enabled


sqlQuery ​

sqlQuery: string | undefined

Initial SQL query (if using SQL data source)


arrowTable ​

arrowTable: Table<any> | undefined

Arrow table data (alternative to sqlQuery)


options ​

options: EmbedOptions<string, Renderers> | undefined

Vega embed options


canApply ​

canApply: boolean

Whether apply is possible (no errors, has changes)


hasChanges ​

hasChanges: boolean

Whether there are any unsaved changes