Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Heather Mann on Sep 24, 2009 13:37
open dhtmlx forum
setStyle for Tabbar attached to Layout object doesn't seem to work

I'm just starting to play around with DHTMLX so forgive me if I'm missing something simple.

I have a layout and have attached a tabbar object to cell b. I then try to set the style but it doesn't change. I've tried several different styles. The css file is linked properly.


        myTabbar = myLayout.cells("b").attachTabbar();
        myTabbar.setStyle("silver");
        myTabbar.addTab("a1","Tab 1");
        myTabbar.addTab("a2","Tab 2");
        myTabbar.setContent("a1","tabbar_a");
        myTabbar.setContent("a2","tabbar_b");

The content is in the tabs and they function properly, it's just the styling which is an issue.

Any help would be most appreciated.

Heather


Answer posted by Alex (support) on Sep 25, 2009 06:58

Dear Heather,

which components version do you use ? 

version 2.1 doesn't allow to set different style to the attached component, but 2.5 does

Answer posted by Heather Mann on Sep 25, 2009 07:37
I'm using version 2.5
Answer posted by Alex (support) on Sep 25, 2009 08:29
locally skin is set. please, take a look at the attached sample 
Attachments (1)
sample.zip65.30 Kb
Answer posted by Heather Mann on Sep 25, 2009 17:51
Thanks Alex!

I wasn't quite sure what 'locally skin is set' meant but from your example  I figured out what the issue was - I wasn't setting the image path for tabbar.  In other words, I was missing this...

myTabbar.setImagePath("codebase/imgs/");

Most Appreciated!
Heather