How to get html element id for smartgwt widgets?

I want to get the html identifier of the input field and the icon field of the TextItem widget, how can I do this ??? (there are no getId labels for the TextItem widget and it seems that setAttribiute ("id", "foo") has no effect)

+3
source share
1 answer

since everything is on the same page, I would not dare to set any identifiers on my own, the probability that you will create two elements (by mistake) with the same identifier is quite high. why do you need it?

you can get an html element named textItem.setName ("Foo"); DOM.getElementsByName ("Foo")

+1
source

Source: https://habr.com/ru/post/1736353/


All Articles