Skip to content

@sqlrooms/vega / VegaEditorActions

Interface: VegaEditorActions

Actions available in the editor

Properties

setEditedSpec()

setEditedSpec: (spec) => void

Update the edited spec string

Parameters

ParameterType
specstring

Returns

void


setEditedSql()

setEditedSql: (sql) => void

Update the edited SQL query

Parameters

ParameterType
sqlstring

Returns

void


applyChanges()

applyChanges: () => void

Apply all changes (calls onSpecChange/onSqlChange callbacks)

Returns

void


cancelChanges()

cancelChanges: () => void

Cancel changes and revert to last applied state

Returns

void


resetToOriginal()

resetToOriginal: () => void

Reset to original initial values

Returns

void