how to set style with id attribute css selector

2008-12-11 Thread bharat.j...@gmail.com

Hi,
  I have a form panel and I want to set style using id attribute so
basically when i do
formPane.addStyleName(teststyle) it will transform into div
class=teststyle /
but I am looking for someting like div id=teststyle/. My goal is
to set styles using css id selectors.

Thoughts,

thanks in advance,
Bharat

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: how to set style with id attribute css selector

2008-12-11 Thread Danny Schimke
To set ID's Debug-ID is the word you're searching for. You can define an
ID be using the ensureDebugID()- Method on e.g. composite widgets /
elements. When you do this there will be a prefix before your real ID.

If your ID is teststyle, the result will be the following:
id=gwt-debug-teststyle.

I don't know whether it's possible to manupilate the Debug-ID prefix... (I
think no)
I can imagine there is another way (over DOM) to set the ID, but since I am
perplexed ^^

Danny

2008/12/12 bharat.j...@gmail.com bharat.j...@gmail.com


 Hi,
  I have a form panel and I want to set style using id attribute so
 basically when i do
 formPane.addStyleName(teststyle) it will transform into div
 class=teststyle /
 but I am looking for someting like div id=teststyle/. My goal is
 to set styles using css id selectors.

 Thoughts,

 thanks in advance,
 Bharat

 


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---