Simple and straightforward way of setting custom html attributes for Vaadin components.
This add-on allows setting and removing custom HTML attributes for any Vaadin Component (to be precise, it sets attributes for a top-level widget that corresponds to that Component).
There are two implementations of HtmlAttributeHandler:
- ComponentAttributeHandler - sets or removes attributes for any individual Vaadin Component (as a side effect, if that Component does not have an id, it will have one assigned to it at random)
- ClassAttributeHandler - sets or removes attributes for any number of Vaadin Components that share a style name
There is also a utility class called Autocomplete with static methods "off". As one would guess, it sets "autocomplete = 'off'" for a specified Component or Components that share a style name.