문제

is it possible to display an icon inside a DropdownButton (for each element)? I'm new to gwt-bootsrap and don't know how to do. I use gwt-bootstrap-2.0.4.0.

도움이 되었습니까?

해결책 2

I found the answer! I used NavLink what was the wrong component. It works with NavWidget

<b:DropdownButton text="Foo">
<b:NavWidget>
    <g:HorizontalPanel>
        <g:Image resource="{res.fooBarPicture}" />
        <g:HTMLPanel>Bar</g:HTMLPanel>
    </g:HorizontalPanel>
</b:NavWidget>

다른 팁

If you only want to have Icons/images in the dropdown, I think if found what you need. If you need text I don't know if it will also work. Look here: GWT Drop Down Menu with images

If you need also Text you could look here. But this is with SmartGwt so you probably won't like it.

Sarajog

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top