dhtmlxlayout integrating with tollbar and attachURL

hi,



Can i attach tollbar and AttachURL using 2U dhtmlx layout, if so can you provide me one working sample, we are using licensed version 2.0



regards

michel.




Hello,


It is possible. The example of attachToobar method can be found in the layout package dhtmlxLayout/samples/components/toolbar.html.


The attachURL can be also called for this cell:


var dhxLayout = new dhtmlXLayoutObject(“parentId”, “2U”);

var bar = dhxLayout.cells(“a”).attachToolbar();
bar.setIconsPath("…/…/…/dhtmlxToolbar/samples/images/");
bar.loadXML(“toolbar.xml”);
dhxLayout.cells(“a”).attachURL(“http://www.google.com/”);