mirror of
https://github.com/DarkFlippers/unleashed-firmware
synced 2024-12-12 06:02:28 +00:00
f353e5708d
* 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> |
||
---|---|---|
.. | ||
scenes | ||
application.fam | ||
example_number_input.c | ||
example_number_input.h | ||
example_number_input_10px.png | ||
ReadMe.md |
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.