Binding DS.Errors to Title attribute and setting has error


#1

I’m wanting to bind errors returned in DS.Errors to the title attribute for a field, ideally separating multiple errors into

  • . If that’s not possible I would settle for just the first error for the field.

    I’d also like to add the has-error class to the input field when there are errors for the field.

    This is so I can use the Bootstrap tooltip component to show validation errors.


  • #2

    I suggest reading @alexspeller’s blog post on this is if you already haven’t.


    #3

    Thanks. I’ve read the blog post, but couldn’t figure or how to format the binding into the title attribute.