setErrors
can.Map.setter.setErrors
Called to specify setter errors that result in an 'error' event triggered with the property and errors.
function(errors)
Called to specify setter errors that result in an 'error' event triggered with the property and errors.
Parameters
-
errors
{Array<String | Object>}
Error details.
Use
Call a setter's
setErrors
callback to trigger errors events on the map instance.