DHTMLX Docs & Samples Explorer

List of Initialization Properties

Common Initialization Options

  • parent - string or object, id of container, where tree will be initialized, mandatory;
  • skin - {string} defines skin of toolbar;
  • icon_path - {string} defines an url where are located necessary for user embedded icons. (setIconsPath)

Accordion's Cells

Accordion's cells can be defined through items collection

accord = new dhtmlXAccordion({
		parent:"accord_container",
		items:[
                        {id:"save", text:"First item", open:true},
                        {id:"delete", text:"Second item" }
                ]
	});

Each cell can have the next attributes:

  • id - {string} id of the cell;
  • text - {string} caption of the cell;
  • img - {sting} icon of the cell;
  • open - {boolean} the current state of the cell.

Events

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

	accord = new dhtmlXAccordion({
		parent:"accord_container",
		onActive:function(){
			alert("I'm active");	
		}
	});