Layout configuration


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”);;

like :
var toolbar = new dhx.Toolbar(“toolbar”, {
css: “dhx_widget–bordered dhx_widget–bg_gray”

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

Thanks for your answer

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

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