@mapgear/geoapps-core > GAEvent
GAEvent class
Base event class, used to dispatch and listen for events.
Signature:export declare class GAEvent<TEventArgs extends GAEventArgs>
Methods
Method | Modifiers | Description |
---|---|---|
add(eventHandler) | Register for an event | |
dispatch(eventArgs, options) | Dispatch the events | |
hasListeners() | Indicate if the event has listeners connected | |
remove(eventHandler) | Remove the registration from an event |