module Ext_data_Errors:Wraps a collection of validation error responses a ...sig
..end
Wraps a collection of validation error responses and provides convenient functions for accessing and errors for specific fields.
Usually this class does not need to be instantiated directly - instances are instead created automatically when validate on a model instance:
//validate some existing model instance - in this case it returned 2 failures messages
var errors = myModel.validate();
errors.isValid(); //false
errors.length; //2
errors.getByField('name'); // [{field: 'name', message: 'must be present'}]
errors.getByField('title'); // [{field: 'title', message: 'is too short'}]
class type t =object
..end
class type configs =object
..end
class type events =object
..end
class type statics =object
..end
val of_configs : configs Js.t -> t Js.t
of_configs c
casts a config object c
to an instance of class t
val to_configs : t Js.t -> configs Js.t
to_configs o
casts instance o
of class t
to a config object