Handler for cleaning text input? #232
Closed
Misterturtle
started this conversation in
General
Replies: 1 comment
|
And of course, right after I post my question, I figure out the answer. For future reference:
So, simply grabbing the TextField and setting this handler inside a script and attaching to the TextBlock works well: As a suggestion, this should be included in your documentation somewhere (unless I'm blind). Again, loving Nova so far and the professionalism and pride you've clearly put into it. |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Learning nova and loving it so far! Very happy with the code integration over all. The GestureHandlers and hierarchical Event system is simple and clean.
I think I'm running into limitations with unity events that are not necessarily implemented in the Nova Input system, such as onValueChange for an InputField. This isn't a gesture, but rather an event from an InputField. Since the TextBlock doesn't use InputField, I'm unsure how to add a handler. The OnSubmit Action inside TextFieldKeyboardInput was a close solution, but it only gets fired on return key pressed, not unFocus.
Overall, the specific behavior I want is to "clean and validate" my string from an input field, removing special characters, etc. when the user is done interacting with it. Is there a recommended way to do this?
All reactions