Events
| Property | Type | Description |
|---|---|---|
onPreChange | function | (optional) Will be called before onChange, this way you can return false to prevent selection and to prevent onChange execution. |
onChange | function | (optional) Will be called on state changes made by the user. |
onSelect | function | (optional) Will be called once the user focuses or selects an item by a click or keyboard navigation. |
onShow | function | (optional) Will be called once the user presses the drawer-list. |
onHide | function | (optional) Will be called once the user presses the drawer-list again, or clicks somewhere else. |
The onChange vs onSelect difference
The difference between onChange and onSelect is:
onChangewill be called when the state changes, either with a click or space/enter keypress confirmation.onSelectdiffers most when the user is navigating by keyboard. Once the user is pressing e.g. the arrow keys, the selection is changing, but not the state.