Can't attachToolbar to Layout and Init it with JSON

I don’t see anywhere in the documentation where I can init with JSON using attachToolbar like this…

var toolbarData = {items:[{ type: "button", id: "home", text: "Home", tooltip: "Home" }]};
var toolbar = dhxLayout.attachToolbar(toolbarData);

Is there a way to do this? I do not want to use XML. Thank you.

Please, loot at this link: … ta_loading
All available methods are documented.

Yeah I saw that. It doesn’t mention anything about JSON. So are you saying it’s not possible? Look here at the Object API Extended Init: … i_ext.html
That is what I want to do, with one exception, instead of…

toolbar = new dhtmlXToolbarObject(toolbarData);

I want to do this…

var toolbar = dhxLayout.attachToolbar(toolbarData);

So is there no way to accomplish a JSON init when attaching a toolbar to a layout?

Just try to change a little this demo file:[code]

Object API Extended Init html,body { height: 100%; margin: 0px; overflow: hidden; }
[/code] And you will get your desirable result