GWT ListBox css styling of the "drop-down" button.

575 views
Skip to first unread message

philipp....@gmail.com

unread,
Jun 8, 2009, 5:34:04 AM6/8/09
to Google Web Toolkit
Hi,

is it possible to change the appearance of the "drop-down" button of
the GWT ListBox and if yes, how so?
(With "drop-down" button, I mean the button that appears if you set
the visibleItemCount to 1).

I have looked at a page generated from GWT and inspected it with
firebug. Thus, I found that a ListBox is represented via the select-
tag (<select class="gwt-ListBox" tabindex="0" style="width: 100%;>),
and thus, I presume that I am out of luck trying to modify the button
with css, but maybe there's another way? Any ideas? Thanks for your
help!

Regards,
Philipp

philipp....@gmail.com

unread,
Jun 8, 2009, 7:52:39 AM6/8/09
to Google Web Toolkit
[Sorry if this should turn out as a double-post. I just didn't receive
any confirmation for my initially sent mail although I waited a couple
of hours].

javawizard2539

unread,
Jul 30, 2009, 3:06:45 PM7/30/09
to Google Web Toolkit
I don't think it is, given that it represents a list box with the
select tag. I don't seem to recall that there's a way to style only
the button using the select tag. What you could do is create a GWT
button, style it, and have it show a popup menu below it when you
click on it. Then you could put your list items as links or buttons or
whatever in your popup menu.

On Jun 8, 5:52 am, "philipp.bouil...@gmail.com"
Reply all
Reply to author
Forward
0 new messages