I’m trying the “Validation by API” snippet shown in “Data Validation Webix Docs” but only could replicate the whole form case. What I’m seeing is that any validation rule defined for a component in the form rules prop does not propagate to the _settings.validate component prop, am I right? If so, the docs should state the following:
//either validate the whole form
{ view:“text”, name: “fname”, on:{
“onChange”:function(){
this.getParentView().validate();
}}
}
:
rules: { fname: function() {} }
//or validate this element when validate method is supplied
{ view:“text”, name: “fname”, validate: function(){}, on:{
“onChange”:function(){
this.validate();
}}
}
Regards