How do you customize the font in a GWT list box?
Using GWT 2.3 and new to all this..
How to you make the word "Select..." in italic and gray below? I tried to setStyleName, but settings are ignor开发者_运维知识库e.
Thanks, Bob
// show word select in am empty list box. nestUnderListBox.addItem("Select...");
// This line did not make "Select..." gray italic.
nestUnderListBox.setStyleName("nextUnderListBoxInitial");what you are trying to do isn't possible with CSS!
See styling HTML form list box with CSS or jQuery for other Ideas!
That's not possible with ListBox.
But, you can use something like CellList (GWT-Showcase) and re-develop the functionality from ListBox.
精彩评论