ActionEvent

class ActionEvent

extends ComponentEvent<TComponent>

Component-specific event that represents the result of a user action, with reference to the source component and optional additional context. Actions are intended to be handled by parent components, or propagated further up the component hierarchy by re-emitting them (default behavior for Component.delegateEvent).

Note: This event type is used when handling events using preset components, using e.g. { "onClick": "EventName" }. The method Component.emitAction() can also be used to emit action events.

Constructor

<TComponent extends Component = Component, TContext extends ManagedObject = ManagedObject>(name: string, source: TComponent, inner?: ManagedEvent): ActionEvent<...>

.context

TContext

Action context (if different from source component).

.source

TComponent

Inherited from ComponentEvent.source.

.inner

ManagedEvent

Inherited from ComponentEvent.inner.

.name

string

Inherited from ManagedEvent.name.

.freeze()

(): Readonly<this>

Inherited from ManagedEvent.freeze.