mirror of
https://github.com/DarkFlippers/unleashed-firmware.git
synced 2025-12-12 12:42:30 +04:00
* Gui: change dialog_ex text ownership model * Gui: change text ownership model part 2 * Examples: fix DialogEx usage in number input * Gui: fix nullptr dereference in DialogEx, proper reset procedure Co-authored-by: hedger <hedger@users.noreply.github.com>
Number Input
Simple keyboard that limits user inputs to a full number (integer). Useful to enforce correct entries without the need of intense validations after a user input.
Definition of min/max values is required. Numbers are of type int32_t. If negative numbers are allowed withing min - max, an additional button is displayed to switch the sign between + and -.
It is also possible to define a header text, shown in this example app with the 3 different input options.