Adding a custom attribute to Button using UiBinder?

35 views
Skip to first unread message

Slava Imeshev

unread,
May 10, 2022, 2:55:41 PM5/10/22
to GWT Users
All,

Is there a way to add a custom attribute to a Button using UiBinder? I'm looking for smth like eem-id="my-button". 

Ideally it would be the button element itself, worst case the GWT container.

TIA,

Slava

Jens

unread,
May 11, 2022, 4:28:53 AM5/11/22
to GWT Users
UiBinder XML can only call setters on the widget itself. In the corresponding java file you can call button.getElement().setAttribute().

-- J.
Reply all
Reply to author
Forward
0 new messages