arcade icon indicating copy to clipboard operation
arcade copied to clipboard

Added validation to UIInputText

Open eschan145 opened this issue 3 years ago • 3 comments

The validation limits what the user can type. For example, if the parameter validate is set to "0123456789", the user can only type numerical digits into the input. The maximum parameter is the maximum number of characters the user can input.

eschan145 avatar Apr 18 '22 18:04 eschan145

#1118

Ibrahim2750mi avatar May 01 '22 08:05 Ibrahim2750mi

Will have a look on it

eruvanos avatar May 02 '22 19:05 eruvanos

I'm not sure that this PR's approach is the best in the long run. I mentioned it as a comment on #1118, but tl;dr I think we should use callables as the validator arguments. The functionality included in this PR could be one of the default validator callables we provide to users.

pushfoo avatar May 02 '22 22:05 pushfoo

I think input validation will need a lot more thought on how (of if) we want to manage it in the main library.

pvcraven avatar Aug 17 '22 14:08 pvcraven