outsystems-ui - v2.30.0
    Preparing search index...

    Interface IEvent<D>

    This interface is the base to all events. All events need to implement it.

    IEvent

    interface IEvent<D> {
        handlers: OSGeneric[];
        addEvent(): void;
        addHandler(handler: OSGeneric, ...args: any[]): void;
        hasHandler(handler: OSGeneric): boolean;
        hasHandlers(): boolean;
        removeEvent(): void;
        removeHandler(handler: OSGeneric): void;
        trigger(data: D, ...args: unknown[]): unknown;
    }

    Type Parameters

    • D

      this will the type of Data to be passed, by default to the handlers.

    Hierarchy (View Summary)

    Implemented by

    Index
    handlers: OSGeneric[]