Custom Rules

To create your own custom rule(s) pass a customRules property to the form's options. The rules are passed as a function that returns true if validation passes. e.g:

customRules: {
  positive: function(field) {
      return field.getValue()>=0;
  }
}

results matching ""

    No results matching ""