Events#
The event catalog. Every widget announces what it does as a named event;
data-carrying events hand the handler a typed payload, while native events hand
it a curated, toolkit-free Event. This module is the home of all of
those types, so editors can autocomplete the attributes on each one.
For a task-oriented introduction — listening, reading a payload, cancelling a subscription, emitting your own — see the Events guide.
Event handling#
The curated event handed to native handlers and the cancellable handle returned by every binding.
The object a handler receives for native and context events. |
|
Handle returned by |
Value and input payloads#
Handed to handlers for value commits, live input, validation, and toggles.
Fires when a field's value is committed (on blur or Enter). |
|
Fires on every keystroke, before the value is committed. |
|
Fires after validation runs — |
|
Fires when a text area's modified (dirty) flag changes. |
|
Fires when an expander is expanded or collapsed. |
Slider payloads#
The live and committed payloads for the single- and range-value sliders.
Fires while a slider (or gauge/meter) value moves. |
|
Fires when a slider value is committed (drag released or stepped). |
|
Fires while either handle of a range slider moves. |
|
Fires when a range slider's values are committed. |
Date payloads#
Fires when a date (or date range) is chosen in a calendar. |
Tab payloads#
The change/activate/deactivate/close payloads for a tab strip.
Fires when the active tab changes. |
|
Fires when a tab becomes active. |
|
Fires when a tab stops being active. |
|
Fires when a tab's close button is used. |
Data and selection payloads#
Row CRUD, selection, export, tree selection, button-group clicks, menu selection, and the data-source change broadcast.
Fires for a single-row action (click, double-click, right-click). |
|
Fires for a multi-row action (insert, update, delete, move). |
|
Fires when the set of selected rows changes. |
|
Fires when a tree's set of selected nodes changes. |
|
Fires after the table's data is exported (copied or saved). |
|
Fires when a button in a button group is clicked. |
|
Fires when a menu item is activated ( |
|
Broadcast by a data source when its data or view changes. |
Picture and media payloads#
The load and error events fired by Picture as it
decodes and displays an image.
Fires when a |
|
Fires when a |
Supporting types#
Value types carried inside payloads, rather than handed to a handler directly.
Identifies a tab by key and display text. |
Enumerations#
The string-literal tags carried by the change and data-change payloads.
- type bootstack.events.ChangeKind#
What a data-source change describes —
'load','insert','update','delete','move','filter','sort','reload','select'.
- type bootstack.events.ChangeMethod#
How a change was made —
'click','key','programmatic','unknown'.
- type bootstack.events.ChangeReason#
Why a change event fired —
'user','api','hide','forget','unknown'.