Home > @cascadiacollections/fluentui-compat > EventGroup > raise
EventGroup.raise() method
Raises a synthetic event by invoking all registered callbacks for the specified event.
This method can be used to programmatically trigger events without actually firing them on the DOM. Useful for testing and custom event patterns.
Signature:
raise(eventName: string, eventArgs?: Event | any): EventGroup;
Parameters
|
Parameter |
Type |
Description |
|---|---|---|
|
eventName |
string |
The name of the event to raise |
|
eventArgs |
Event | any |
(Optional) Optional event object or arguments to pass to callbacks |
Returns:
This EventGroup instance for method chaining