Replies: 7 comments 2 replies
-
Indeed |
Beta Was this translation helpful? Give feedback.
-
Would you have an example of how to do that you could share? |
Beta Was this translation helpful? Give feedback.
-
Not right now, as I would have to test it. But the idea is to call the JS trigger function like shown in the doc here |
Beta Was this translation helpful? Give feedback.
-
Ok thanks, I'll see if I can get it to work. |
Beta Was this translation helpful? Give feedback.
-
It's possible to trigger the function, but not get the value that is passed to be validated. Any thoughts on how to do that? I was also wondering why does click allow a python function to be supplied and not rules? Is something happening behind the scenes to make this work? |
Beta Was this translation helpful? Give feedback.
-
I used:
with the trigger function:
|
Beta Was this translation helpful? Give feedback.
-
The only example of
VTextField
validation I can find is in the09_advanced/custom_js
example where a custom JS function is used. Is it possible to use a python function/expression for validation? I've tried setting rules to("[self.validate]",)
but it complains about an undefined object.Beta Was this translation helpful? Give feedback.
All reactions