а

Layout configuration


#1

Helo,

Is it possible to configure a layout with the definition in a separate file (js , json or xml) like toolbar or sidebar ?
I’ve tried :
var layout = new dhx.Layout(“layout”);
layout.data.parse(main_layout);

like :
var toolbar = new dhx.Toolbar(“toolbar”, {
css: “dhx_widget–bordered dhx_widget–bg_gray”
});
toolbar.data.parse(toolbar_data);

It doesn’t work, so there is a way ?

Thanks for your answer


#2

Please, try to use the second attribute of the layout object.

var layout = new dhx.Layout(“layout”,main_layout);
//layout.data.parse(main_layout);