[Lens]: Embeddability API: Add callbacks for event handlers #90925
Labels
enhancement
New value added to drive a business result
Feature:Lens
Team:Visualizations
Visualization editors, elastic-charts and infrastructure
Projects
Currently chart events in Lens are translated into ui actions in the embeddable. This makes sense for the dashboard integration, but in case of embedded Lens visualizations using the exposed
EmbeddableComponent
, integration is easier if it's possible to pass in callback functions which are called directly.This includes:
EmbeddableComponentProps
/LensEmbeddableInput
with callbacks:onBrush(data: LensBrushEvent['data']): void
etc.x-pack/plugins/lens/public/editor_frame_service/embeddable/embeddable.tsx
, inhandleEvent
check whether there is a callback passed in via input - if that's the case call it instead of execution an actiontrue
, onceonData$
gets fired from the expression renderer component, it becomesfalse
again.)The text was updated successfully, but these errors were encountered: