DHTMLX Docs & Samples Explorer

attachToolbar()

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

attaches a dhtmlxToolbar to the whole layout or a cell

//to the whole layot
var dhxToolbar = dhxLayout.attachToolbar(); // returns toolbar object
//to a cell
var dhxToolbar = dhxLayout.cells(id).attachToolbar(); // returns toolbar object