Hi everyone,

i am trying to disable a few tabs in my TabBar since there is no
content in some cases. Therefor i disabled those tabs due to adding a
TabListener with the Method onBeforeTabSelected which returns false if
the tabIndex fits. (hint from this thread:
http://groups.google.com/group/Google-Web-Toolkit/browse_thread/thread/ceeca70295818527/65cbf68fbaff5f5b?lnk=gst&q=tab+disable#65cbf68fbaff5f5b)
. It works fine and nothing happens if you try to click on the tab.
Now i want those disabled tabs to look different than active or
selected tabs.

Example CSS file:
.MainBar .gwt-TabBar {
  background-color: #222222;
}

.MainBar .gwt-TabBarItem {
  font-weight: bold;
  cursor: pointer;
  background-color: red;
}

.MainBar .gwt-TabBarItem-selected {
  font-weight: bolder;
  cursor: default;
  background-color: green;
}

.MainBar .gwt-TabBarItem-disabled {
  color:  grey;
  font-style: italic;
  background-color: yellow;
  cursor: default;
}

It works for the active and selected tabs, but i think disabled tabs
are not supported in GWT 1.5.3 that's why i have to set the style on
my own (since i only managed to disable them), but i don't know how to
access a single tab. Any suggestions? If there is a better way to
disable tabs and change the style let me know! I think with GWT 1.6 it
is possible to enable/disable single tabs, but i would like to work
with 1.5.3 until 1.6 has the status of a new official release.

Thanks a lot in advance,
-Lord-67
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to