开发者

How do you customize the font in a GWT list box?

开发者 https://www.devze.com 2023-03-24 00:23 出处:网络
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.

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消