Quantcast
Channel: SmartClient Forums
Viewing all articles
Browse latest Browse all 4756

LinkItem base style smartGWT5.0p

$
0
0
Hello.
When upgrading to smartGWT5 I have noticed that the LinkItem default css class style is now staticTextItemDisabled.

from the smartGWT showcase (http://www.smartclient.com/smartgwt/...ntrols_various) I can see with firebug the following for the LinkItem:

Code:

<div id="isc_GN" class="staticTextItemDisabled" style="min-width:146px;min-height:36px;white-space:nowrap;" $89="isc_LinkItem_1">
The code that creates this item in the showcase is:

Code:

LinkItem linkItem = new LinkItem("link"); 
        linkItem.setTitle("LinkItem"); 
        linkItem.setLinkTitle("<br>Click Me<br>"); 
        linkItem.setHeight(36); 
        linkItem.addClickHandler(new ClickHandler() { 
            public void onClick(ClickEvent event) { 
                SC.say("Hello World"); 
            } 
        });

Is this intended? If so, how can I modify it so that the base style is not "staticTextItemDisabled" but rather "staticTextItem"? And in this case, if I disable the link, will it then apply the "disabled" suffix to the item base style?

Viewing all articles
Browse latest Browse all 4756

Trending Articles