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 object with 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