Skip to content Skip to sidebar Skip to footer

How To Get Html Element Id Of Smartgwt Widgets?

I want get html id of input field & icon field of a TextItem widget, how can i do this ??? (no getId methos is available for TextItem widget & seems that setAttribiute('id'

Solution 1:

since everything is on a single page, i wouldn't dare to set any IDs yourself, the probability that you create two items (by mistake) with the same id is quite high. why would you need it anyway?

you may get the html element by name textItem.setName("foo"); DOM.getElementsByName("foo")


Post a Comment for "How To Get Html Element Id Of Smartgwt Widgets?"