-
Notifications
You must be signed in to change notification settings - Fork 64
Closed
Description
Enhancement
The approach to widget events is fragmented across existing widgets. Basic form widgets have handlers for all interaction events (mouse, touch, and keyboard), and pass back the dom event object as the argument. Most other widgets only include widget-specific events (e.g. onOpen
for Dialog), and pass some part of requested state back as the argument (e.g. year
for onYearChange
in Calendar).
Widgets could be improved by standardizing event handlers in two ways:
- More logical approach to which events are exposed
- Consistent approach to which arguments are passed to the event handler