Adding a custom attribute to Button using UiBinder?

35 visualizzazioni
Passa al primo messaggio da leggere

Slava Imeshev

da leggere,
10 mag 2022, 14:55:4110/05/22
a 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

da leggere,
11 mag 2022, 04:28:5311/05/22
a GWT Users
UiBinder XML can only call setters on the widget itself. In the corresponding java file you can call button.getElement().setAttribute().

-- J.
Rispondi a tutti
Rispondi all'autore
Inoltra
0 nuovi messaggi