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.