Groups
Groups
Sign in
Groups
Groups
GWT Users
Conversations
About
Send feedback
Help
Adding a custom attribute to Button using UiBinder?
46 views
Skip to first unread message
Slava Imeshev
unread,
May 10, 2022, 2:55:41 PM
5/10/22
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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 AM
5/11/22
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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