Skip to content

Latest commit

 

History

History
11 lines (8 loc) · 368 Bytes

useWidgetsEvents.md

File metadata and controls

11 lines (8 loc) · 368 Bytes

useWidgetsEvents

Subscribes to a list of events in a list of widgets widget. The widgets are usually returned by a call to useWidgets.

useWidgetsEvents(widgets, events);
  • widgets: Widget[] - The widget instances.
  • events: Record<string,function>[] - The events and callbacks to subscribe to for each widget.