mirror of
				https://github.com/s00500/ESPUI.git
				synced 2025-10-26 13:43:48 +00:00 
			
		
		
		
	Improve documentation.
This commit is contained in:
		| @@ -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 | ||||
|  | ||||
|  | ||||
| @@ -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 | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Ian Gray
					Ian Gray