@sqlrooms/vega / VegaEditAction
Variable: VegaEditAction
constVegaEditAction:React.FC<VegaEditActionProps>
View/Edit action component for VegaLiteArrowChart. Provides a popover with tabbed Vega-Lite spec and SQL viewers. When editable is true in the context, shows editing controls.
Must be used within a VegaChartContainer to access editor context.
Example
tsx
<VegaChartContainer spec={spec} sqlQuery={query}>
<VegaChartDisplay>
<VegaLiteArrowChart.Actions>
<VegaExportAction />
<VegaEditAction editorMode="both" />
</VegaLiteArrowChart.Actions>
</VegaChartDisplay>
</VegaChartContainer>