Docs (4.0.0)
Event handling

type DelegatedEvent

A generic type definition for an event that has been propagated by a delegate object.

type DelegatedEvent<TDelegate extends ManagedObject, TSource extends ManagedObject = ManagedObject, TData extends Record<string, unknown> | undefined = Record<string, unknown> | undefined, TName extends string = string> = ManagedEvent<TSource, TData, TName> & {
    readonly delegate: TDelegate;
}

Notes

  • The source property refers to the object that originally emitted (or intercepted) the event; however, the delegate property can be used to find the object that delegated the event, e.g. UIForm or UIListView.ItemControllerView.