This package extends the Terminal application framework https://github.com/rivo/tview.
A FocusGroup can be used to group multiple editable views with respect to getting focus. You can cycle through members of this group using Tab, Enter and BackTab.
A StringHolder adds simple notification to dependents of interface StringChangeHandler
.
When setting the value (string
) all dependents (functions) are called. Typically a StringHolder can be used a Model to decouple the View from the Application (MVP pattern).
A StringListSelectionHolder adds simple notification to dependents of interface SelectionChangeHandler
.
Typically a StringListSelectionHolder is used as the model for a DropDown.
A BoolHolder adds simple notification to dependents of interface BoolChangeHandler
.
Typically a BoolHolder is used as the model for a Checkbox.
See test folder a sample program using all extensions.
© 2020 ernestmicklei.com