xxxxxxxxxx
let layout = new w2layout({
name : 'layout',
panels : [
{ type: 'top', size: 40 },
{ type: 'main', content: 'This is main panel' },
{ type: 'preview', size: 200, hidden: true }
]
});
// ...
// some code
// ...
w2ui.layout.destroy();
xxxxxxxxxx
$().w2destroy('layout');