Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Terbeaux333 on Sep 11, 2009 15:20
open dhtmlx forum
Tree with background image

I couldn't help but notice the dhtmlxTree with a beautiful background image of an airplane that is displayed on the main dhtmlx.com web page.

Do you have example code for a dhtmlxTree with a background image?

Thank you,

Terbeaux333
Answer posted by Support on Sep 14, 2009 05:20
You can assign any bg image to the container of tree through normal style rules. 

<div id="treeboxbox_tree" style="width:250px; height:218px;background-image:url(Sky00000.jpg);"></div>

Sample is attached

Attachments (1)
Answer posted by Terbeaux333 on Sep 14, 2009 07:35
After I posted, I figured you would post the above answer.  Do you have a way to do it with a tree attached to a Windows dhtmlXLayoutObject?

Such as:

myTree = outerLayout.cells("a").attachTree("0")

Thanks,

Terbeaux333
Answer posted by Support on Sep 14, 2009 07:59
Yep, it can be done as

myTree = outerLayout.cells("a").attachTree("0")
myTree.parentObject.style.backgroundImage="url(some.jpg)";