validate of ui.list, Methods Webix Docs
validates one record or all dataset against the validation rules
boolean validate( [string id] );
id
| boolean | true, if the record is valid |
Example
mylist = webix.ui({
view:"list",
template:"#rank#. #title#",
...
rules:{
title:webix.rules.isNotEmpty
}
});
/*validate all records*/
var result = mylist.validate();
/*validate first record*/
var result = mylist.validate(mylist.getFirstId());
Related samples
Details
If the id was not provided, the component will validate all records.
The method uses config.rules for validation.
Invalid rows are displayed with the "webix_invalid" marker.
See also
API
Articles
If you have not checked yet, be sure to visit site of our main product Webix js framework and page of list ui product.