Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Tom on May 31, 2008 09:45
open dhtmlx forum
inserting a tree in tabbar

Hi

We have recently purchased dhtmlxTabbar, and I sent an email for an example of how this is done, unfiratunately the reply that we received was not CLEAR...


In addition, the example on your documentation does not demonstrates this, and as we are paying customers this is not a very professional approach to take!

Can you give us a example of how the archive this....

Looking forward to your reply!!!!!


Tom
Answer posted by Support on Jun 02, 2008 09:36
>>In addition, the example on your documentation does not demonstrates this
The tabbar package contains
    dhtmlxtabbar/samples/interaction_other_components/tab_dhtmlx.html
which is fully functional example of mentioned functionality.

HTML code
<div id="a_tabbar" style="width:352px; height:292px;"></div>   <= tabbar container
<div id='html_1' style="width:350px; height:250px"></div>    <= tree container

JS code
//init tree
  var tree=new dhtmlXTreeObject('html_1','100%','100%',0);
    ...
//init tabbar
    tabbar=new dhtmlXTabBar("a_tabbar","top");
    tabbar.addTab("a1","Tree","100px");

//place tree into tabbar
    tabbar.setContent("a1","html_1");

There is no any special command, which need to be executed, any HTML content can be placed inside tabbar, it doesn't matter is it static HTML content, or any kind of dhtml component.