question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Dynamic parameter/argument in data-rules

See original GitHub issue

Hi, Is it possible to dynamic add data to the data-rules? You see a example below but it’s not working.

<input v-validate data-rules="numeric|toLow:{{ amount }}" name="bieden" v-model="bieden" type="number">

Validator.extend('toLow', { getMessage: field => 'Error tolow', validate: function(value, options) { console.log(value); console.log(options); } });

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:13 (7 by maintainers)

github_iconTop GitHub Comments

3reactions
yusupprogcommented, Nov 8, 2016

When it will be implemented, cause it’s very important feature?

0reactions
logaretmcommented, Jan 5, 2017

@yusupprog I’m having issues making them reactive at the moment, you can use the methods approach.

this.$validator.fieldBag.dirty('someField');

// or

fields.dirty('someField'); // since fields are injected in your Vue instance.
Read more comments on GitHub >

github_iconTop Results From Across the Web

Top use cases for dynamic data parameterization in Power BI
Parameters are used in Power BI to store and manage values dynamically. Dynamic parameterization gives the flexibility to dynamically ...
Read more >
Selecting Which Argument to Pass Dynamically in R
I'm trying to pass a specific argument dynamically to a function, where the function has default values for most or all arguments. Here's...
Read more >
Dynamic M query parameters in Power BI Desktop
Dynamic M query parameters give model authors more control over the filter selections to incorporate into DirectQuery source queries.
Read more >
jquery value
Jquery ValueThe serializeArray () function is used to get from data; it returns the array of objects by serializing the form data.
Read more >
Dynamic Parameters - jsPsych
In a typical declaration of a jsPsych trial, parameters are known at the start of ... This enables dynamic updating of the parameter...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found