Web UI component: j-Validation


  • Info
  • HTML
  • JS
  • CSS
  • Meta

j-Validation

Configuration:

  • if {String} can contain a condition for evaluation (optional)
  • selector {String} jQuery selector for disabling (optional, default: button[name="submit"])
  • timeout {Number} a timeout for validation (optional, default: 100)
  • flags {String} +v13.0.0 flags for better validation, can contain visible,hidden,enabled,disabled components
    • enabled validates all components which are enabled input, textarea or select elements
    • disabled validates all components which are disabled input, textarea or select elements
    • hidden validates all components which are hidden
    • visible validates all components which are visible
  • NEW track {String} can contain paths divided by comma which evaluate validation (executors for paths aren't components, but these methods SET(), UPD(), INC(), etc.)

Good to know:

  • component adds ui-validation-ok to the element if the model is valid
  • component adds ui-validation-no to the element if the model is invalid

Author