tui.on_change
tui.on_change ID FN [--debounce]
Sets a function called as FN ID whenever the widget changes through the user.
Parameters
--debounce- for list and table: the selection moves and redraws on every key, butFNruns once the keys stop (or everyTUI_CHANGE_DEBOUNCE_MAXevents, default 8). Use it whenFNrepaints other panes.
Notes
- Fires after every edit (input, password, textarea), selection move (list, table) or picked value (select).
- Not called for programmatic changes such as
tui.updateortui.list.set.
Example
tui.on_change notes mark_dirty
mark_dirty() { tui.set_label btn_save "[ Save* ]"; }
