rules

defines a set of rules for input field(s) of the form(htmlform)

object rules;

Example

webix.ui({
    view:"form",
    elements: [..],
    rules:{
        login: rule1,
        email: rule2
    }
});

Details

Rules object contains hash of key value pairs where:

  • key - form field name, data key used for component template, datatable colimn ID.
  • value - the rule applied. Can be predefined or custom (any function can be a rule).
See also
Back to top
If you have not checked yet, be sure to visit site of our main product Webix web control library and page of form elements product.