validatePresenceOf
can.Map.validations.static.validatePresenceOf
observe.validatePresenceOf(attrNames, options)
Validates that the specified attributes are not blank.
init : function(){
this.validatePresenceOf(["name"])
}
Parameters
-
attrNames
{Array<String>}
Attribute name(s) to to validate
-
options
{Object}
OptionalOptions for the validations. Valid options include 'message' and 'testIf'.