1
0
mirror of https://github.com/s00500/ESPUI.git synced 2024-11-21 17:40:54 +00:00

Improve documentation.

This commit is contained in:
Ian Gray 2022-01-15 14:29:03 +00:00
parent 6a513e9f65
commit 9eddf2c504

View File

@ -259,6 +259,12 @@ A number box needs to have a min and a max value. To set it up just use:
`ESPUI.number("Numbertest", &numberCall, ControlColor::Alizarin, 5, 0, 10);`
Note that HTML number boxes will respect their min and max when the user
clicks the up and down arrows, but it is possible on most clients to simply type
any number in. As with all user input, numbers should be validated in callback code
because all client side checks can be skipped. If any value from the UI might
cause a problem, validate it.
#### Text Input
![text](https://github.com/s00500/ESPUI/blob/master/docs/ui_text.png)
@ -276,7 +282,7 @@ to the control.
```
However even with a set maximum length, user input should still be validated
because it is easy to bypass client-side checks.
because it is easy to bypass client-side checks. Never trust user input.
#### Graph