Skip to content

Standardize widget events #302

@smhigley

Description

@smhigley

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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions