setErrors

  • function
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

  1. errors {Array<String | Object>}

    Error details.

Use

Call a setter's setErrors callback to trigger errors events on the map instance.