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.
Was this helpful? Need more help?
Leave a comment or a question below. You can also join the chat on Discord or ask questions on StackOverflow.
Initial version with two implementations of HtmlAttributeHandler and a utility class.
- Apache License 2.0
- Vaadin 7.6+
- Browser Independent