Skip to content

Add to documentation $setValidators #55

@SlivaNilow

Description

@SlivaNilow

It is possible to add validation rules after loading a set of fields. For example, if the set of fields depends on the select.

Need create method

validate: function() {
       this.$setValidators(this.getValidatorRules());
       this.$validate();
}

where getValidatorRules return object

{
    'fieldName1' => function(){},
    'fieldName2' => function(){},
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions