description:"JS code which gets executed when clicks on text of a node"
},
onSelect:{
name:"onSelect",
type:"js",
default:et2_no_init,
description:"Javascript executed when user selects a node"
},
onCheck:{
name:"onCheck",
type:"js",
default:et2_no_init,
description:"Javascript executed when user checks a node"
},
// TODO do this : --> onChange event is mapped depending on multiple to onCheck or onSelect
onOpenStart:{
name:"onOpenStart",
type:"js",
default:et2_no_init,
description:"Javascript function executed when user opens a node: function(_id, _widget, _hasChildren) returning true to allow opening!"
},
onOpenEnd:{
name:"onOpenEnd",
type:"js",
default:et2_no_init,
description:"Javascript function executed when opening a node is finished: function(_id, _widget, _hasChildren)"
},
imagePath:{
name:"Image directory",
type:String,
default:egw().webserverUrl+"/api/templates/default/images/dhtmlxtree/",//TODO we will need a different path here! maybe just rename the path?
description:"Directory for tree structure images, set on server-side to 'dhtmlx' subdir of templates image-directory"
},
value:{
type:"any",
default:{}
},
actions:{
name:"Actions array",
type:"any",
default:et2_no_init,
description:"List of egw actions that can be done on the tree. This includes context menu, drag and drop. TODO: Link to action documentation"
},
autoLoading:{
name:"Auto loading",
type:String,
default:"",
description:"JSON URL or menuaction to be called for nodes marked with child=1, but not having children, GET parameter selected contains node-id"
},
stdImages:{
name:"Standard images",
type:String,
default:"",
description:"comma-separated names of icons for a leaf, closed and opened folder (default: leaf.png,folderClosed.png,folderOpen.png), images with extension get loaded from imagePath, just 'image' or 'appname/image' are allowed too"
},
multiMarking:{
name:"multi marking",
type:"any",
default:false,
description:"Allow marking multiple nodes, default is false which means disabled multiselection, true or 'strict' activates it and 'strict' makes it strict to only same level marking"
},
highlighting:{
name:"highlighting",
type:Boolean,
default:false,
description:"Add highlighting class on hovered over item, highlighting is disabled by default"