Thursday, June 30, 2011

In ListBox, how to you format first item Select... to italic and gray?

In ListBox, how to you format Select... to italic and gray?

GWT 2.3, still learning...
It is standard to have select visibile in the drop down box in italic and grayed out a bit.  I presume Select is simply the first item added.
   myrListBox.addItem("Select...");
with other "real " items after that added.

but I don't see how to format the word select.  You cannot attach at CSS to an added item (that I can see).

Any ideas?
Thanks!
Make it a great day!
bob

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

No comments:

Post a Comment