Announcement

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

    How to set custom tabBarBaseLine CSS

    Hi Support team.

    I am using 14.0 Enterprise Edition.

    Is ther a way to set Custom base line css for TabBar.

    I want to change background color to transparant on one of the TaBSet

    Thanks,
    Revan

    #2
    Thanks for the question - you can't easily do this via CSS for a single TabSet, but you can do it directly:

    Code:
    // get a canvas with a transparent background
    Canvas baseLine = new Canvas();
    baseLine.setBackgroundColor("transparent");
    
    // apply it to the baseLine autoChild of a TabBar
    TabBar tabBar = new TabBar();
    tabBar.setAutoChildProperties("baseLine", baseLine);
    
    // and apply the tabBar properties to the tabBar autoChild of your TabSet
    TabSet tabs = new TabSet();
    tabs.setAutoChildProperties("tabBar", tabBar);

    Comment


      #3
      Working great, thank you so much

      Comment

      Working...
      X