HtmlElementProperties.addCustomAttribute

The control property can have attributes attached to them, these are typically a name/value pairs for example title='Please enter your username'. This property allows you to add your own custom attribute at runtime. If the attribute name already exists then the value will be replaced with the new value. The value can be null and this will add the attribute name only.

Further documentation

Parameters

java.lang.String  name,  java.lang.String  value,