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