rules

set of validation rules for the component

object rules;

Example

webix.ui({
    view:"datatable",
    rules:{
        "year": webix.rules.isNotEmpty,
        "value": function(value){ return value > 0 }
    }
})

Details

You will not be able to save data to server side if it doesn't conform to validation rules.

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.