Skip to content

Component Validation engine

donvadicastro edited this page Oct 20, 2015 · 1 revision

Component Validation engine is used to apply all user specific validation logic or data restrictions before form processing. Data bounded components should pass validation check before action executing to ensure data validity. System should have support to apply generic validators like "required" and should be open to add custom.

Component Validation generic properties

  • required - used to ensure data was entered in this contol
  • min - allow to specify min boundaries for data
  • max - allow to specify max boundaries for data

Component Validation example

{
  binding: 'country.name',
  validation: { required: true }
}