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
Join Our Forum
We've retired comments here. Visit our forum for faster technical support, connect with other developers, and share your feedback there.
If you have not checked yet, be sure to visit site of our main product Webix js framework and page of javascript toolbar product.