Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by michel on Mar 17, 2009 13:25
open dhtmlx forum
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.

Answer posted by Alex (support) on Mar 18, 2009 04:25

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/");