funcunit
Version:
<!-- @hide title
13 lines (9 loc) • 457 B
Markdown
can.Map.validations.static.validatePresenceOf validatePresenceOf
can.Map.validations 5
`observe.validatePresenceOf(attrNames, options)`
Validates that the specified attributes are not blank.
init : function(){
this.validatePresenceOf(["name"])
}
{Array<String>|String} attrNames Attribute name(s) to to validate
{Object} [options] Options for the validations. Valid options include 'message' and 'testIf'.