DHTMLX Docs & Samples Explorer

attachDataView()

Required library edition: This method works with any edition of DHTMLX library
Required library file: dhtmlxdataview.js

attaches dhtmlxDataView to the cell, returns folders object

Attaching to the layout's cell:

   var config = {
	type:{
		template:"#Package# : #Version#<br/>#Maintainer#",
		padding:5,
		height:40
	}
    };
    var dhxData = dhxLayout.cells("a").attachDataView(config); // returns folders object

Attaching to the accordion's cell:

    var dhxData = dhxAcc.cells(id).attachDataView(config); // returns folders object

Attaching to a window:

    var dhxData = dhxWins.window(id).attachDataView(config);

Attaching to a tab:

    var dhxData = dhxTabbar.cells(tabId).attachDataView();