Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    Changing a Tab style

    Hello folks,

    The smartgwt API doesn't provide methods on Tab to set the style name.
    Do you know if there is a way to customize a tab's title color whether the tab is selected or not ? I think I have to set a stylename on the tab set but I'm not sure at all.

    Thanks,

    AL

    #2
    Call tab.setAttribute("titleStyle", cssStyleName);

    Comment


      #3
      I'm auto answering :)

      In fact yes it works on the tabset style. The problem is that the Google Browser doesn't take it into account (whereas Firefox is working ok). I'll try by closing Google Browser and run it again.

      Comment


        #4
        How to set style onto a selected, and hovered tab

        Hi Sir please help me in this.

        Cant find the attribute list for this.

        Thanks a lot

        Comment


          #5
          I just tried tab.setAttribute("titleStyle", cssStyleName);

          It seems that the background-color for the tab does not populate the whole space(please see attached).

          If doing this is not possible, is there any way to removed the curved corners of the tab so we can facilitate complete tab colors on this.

          Thank you again.
          Attached Files

          Comment

          Working...
          X