Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Lalit on Mar 19, 2009 07:10
open dhtmlx forum
dhtmlxtabbar image

Hi,
Can we change the Tabbar header background with our own image ? How?

Regards,
Lalit
Answer posted by Alex (support) on Mar 19, 2009 08:32

Hello, 

It is possible by creating new skin.

The skin contains tabs images and some style properties. 

Please, take a look at the icons of "silver" skin for top-aligned tabbar:

codebase/imgs/top/silver/

You can create some new skin and place its images in the corresponding folder: codebase/imgs/top/new/

tabbar.setSkin("new");

tabbar._styles.new= ["new/p_left.gif","new/p_middle.gif","new/p_right.gif","new/a_left.gif","new/a_middle.gif","new/a_right.gif","new/p_middle.gif",7,8,6,"white","white","white"];

Answer posted on Mar 21, 2009 07:15
Why are there so many different images with different shape ? Do we need to create images of such random shapes ?
Cant we use a single rectangular image of the shape of tab ?

Thanks & Regards,
Lalit
Answer posted by Alex (support) on Mar 23, 2009 02:41

Hello, 

Unfortunately it isn't possible to use one image. 

The tabs can have different width and height. So, all these images are necessary. Images, which are started with "p_", are designed for passive tabs, with "a_" - for active tab.