unleashed-firmware/applications/examples/example_number_input
Ruslan Nadyrshin 41c35cd59e
Documentation: update and cleanup (#3934)
* Developers Docs editing

* Logo underline removed

The underline has been removed when hovering over the logo.

* proofread docs

* application -> app in several files

---------

Co-authored-by: knrn64 <25254561+knrn64@users.noreply.github.com>
Co-authored-by: あく <alleteam@gmail.com>
2024-10-08 15:27:16 +04:00
..
scenes Gui: change dialog_ex text ownership model (#3831) 2024-09-05 14:32:48 +01:00
application.fam Added a text input that only accepts full numbers (int) (#3350) 2024-08-08 15:05:48 +09:00
example_number_input_10px.png Added a text input that only accepts full numbers (int) (#3350) 2024-08-08 15:05:48 +09:00
example_number_input.c Added a text input that only accepts full numbers (int) (#3350) 2024-08-08 15:05:48 +09:00
example_number_input.h Added a text input that only accepts full numbers (int) (#3350) 2024-08-08 15:05:48 +09:00
ReadMe.md Documentation: update and cleanup (#3934) 2024-10-08 15:27:16 +04:00

Number Input

Simple keyboard that limits user inputs to a full number (integer). Useful to enforce correct entries without the need for intense validations after a user input.

Source code

Source code for this example can be found here.

General principle

Definition of min/max values is required. Numbers are of type int32_t. If negative numbers are allowed within min - max, an additional button is displayed to switch the sign between + and -.

It is also possible to define a header text, as shown in this example app with the 3 different input options.