parent - string or object, id of container, where tree will be initialized, mandatory
image_path - string, path to image folder, which will be used for icons in tree
width - {string} width of tree, can be defined in pixels or in percents
height - {string} height of tree, can be defined in pixels or in percents
root_id - {string} id of virtual root item
-
drag_copy - {boolean}, enable drag without removing (copy instead of move) (
enableMercyDrag )
drag_image - {boolean}, enable draging item image with item text (
enableImageDrag )
-
-
auto_tooltip - {boolean}, enable auto tooltips (node text as tooltip) (
enableAutoTooltips )
checkbox_smart - {boolean}, enable smart checkboxes ,true by default (auto checking children and parents for 3-state checkboxes) (
enableSmartCheckboxes )
distributed_parsing - {boolean}, enable distributed parsing of big tree (items loaded portion by portion with some timeouts) (
enableDistributedParsing )
-
image_fix - {boolean}, replace IMG tag with background images - solve problem with
IE image caching , not works for
IE6 SP1 (
enableIEImageFix )
lines - {boolean}, enable/disable tree lines (parent-child threads) (
enableTreeLines )
-
-
-
-
rtl - {boolean}, enables Right-to-Left mode in tree (
enableRTL )
search - {boolean}, enable search items by pressing keys (any item in tree should be focused/selected to make search work) (
enableKeySearch )
smart_rendering - {boolean}, enables smart rendering mode (usefull for big trees with lots f items on each level) (
enableSmartRendering )
-
any event can be assigned by using property equal to event name
tree = new dhtmlXTreeObject({
parent:"a_tree",
onClick:function(){
alert("I'm clicked");
}
});