PanelHandler
type PanelHandler<P> = string | ((payload) => unknown);What happens when a component is pressed or changed. It is either the name of an action of the plugin, or a function that receives the data of the event. The app keeps the function and calls it when the person interacts with the component.
Type Parameters
Section titled “Type Parameters”| Type Parameter | Default type | Description |
|---|---|---|
P |
undefined |
the type of the data that the function receives |
