Announcement

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

    How to set the background color for a tab

    Hi

    I am using SmartGWT 2.2

    I am not able to set background color for the tab.

    I have followed one of the threads in this forum and wrote the below code. but it is not working.

    HashMap<String, String> map = new HashMap<String,String>();

    map.put("backgroundColor","#FF0000");

    JavaScriptObject jso = JSOHelper.convertMapToJavascriptObject(map);

    TabSet tabbar = new TabSet();
    Tab b = new Tab();
    b.setTitle("Hello");
    b.setAttribute("tabProperties",jso);
    tabbar.addTab(b);

    Request you to please point out the mistake in code and give a solution for this problem.

    Thanks in advance,
    Selvam S

    #2
    Did you manage to set the background color on a tab?

    Comment

    Working...
    X