DHTMLX Docs & Samples Explorer

List of initialization properties

Common initialization options

  • parent - string or object, id of container, where tree will be initialized, mandatory
  • image_path - {boolean} sets new base dir for images used(setImagePath)
  • context_menu - {object} enable/disable context menu(enableContextMenu)
  • css - {boolean} set some name to be used in top css class name for Folders Item by the following schema: dhx_folders_[CSSBASENAME_]item(setCSSBaseName)
  • drag - {boolean} enables or disables drag-n-drop in Folders(enableDragAndDrop)
  • selection - {integer} set selection mode(enableSelection)
  • tag - {boolean} (setItemTagName)
  • type - {boolean} define type of items (see among defined types)(setItemType)

Events

any event can be assigned by using property equal to event name

	myfolders = new dhtmlxFolders({
		parent:"a_folders",
		onClick:function(){
			alert("I'm clicked");	
		}
	});