[expressions] couple to UI Actions #111426
Labels
Feature:ExpressionLanguage
Interpreter expression language (aka canvas pipeline)
impact:low
Addressing this issue will have a low level of impact on the quality/strength of our product.
loe:large
Large Level of Effort
Team:Visualizations
Visualization editors, elastic-charts and infrastructure
Currently expression renderer can use
handler.emit
to emit pretty much anything but it can't know what will actually be handled by the application consuming the expressions. Application could decide to do anything with the value, but most applications today handle the value to UIActions plugin.To standardize the way expression events work we should couple expressions with UIActions:
getExtraActionContext: () => Context
toExpressionRenderHandlerParams
hasCompatibleActions
fromExpressionRenderHandlerParams
preventDefault: () => void
toExpressionRendererEvent
event
handler should emit the value, check ifpreventDefault
was called and if not calluiActions?.executeTriggerActions(name, { …context, ...getExtraActionContext() });
note: above should only happen when rendering with interactions enabled
.preventDefault()
on event and manually handle it, or even better remove the manual handling in favor of internal handling with uiActionsthis.input
(still needs subscription toevents$
)bounds
event, for all other events it should not do anythingevents$
. It probably shouldn't and should let expressions call uiActions even when it moves to the new filtering approach.The text was updated successfully, but these errors were encountered: