How to pass computed property to a custom validation rule ? #4101
Unanswered
anibanti2411
asked this question in
Q&A
Replies: 2 comments
-
Hi, I am still stuck with this one. Please let me know whether there is any way to achieve the same |
Beta Was this translation helpful? Give feedback.
0 replies
-
On the other hand |
Beta Was this translation helpful? Give feedback.
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.
-
Hi, in vee-validate 4 , how can I pass a computed property while defining a custom rule ? defineRule(‘rule1’, (value, [target]) => {}); I want to pass a computed property name via target and want to perform the logic based on the array returned by the computed property.
I tried like the following but it did not work -
const schema = {name : “rule1: names”};
names is the computed property defined in my component and that returns an array
Beta Was this translation helpful? Give feedback.
All reactions