xxxxxxxxxx
let sidebar = new w2sidebar({
name: 'sidebar',
flatButton: true,
nodes: [
{ id: 'id-1', text: 'Level 1' },
{ id: 'id-2', text: 'Level 2' },
{ id: 'id-3', text: 'Level 3' }
]
});
xxxxxxxxxx
w2ui.sidebar.flatButton = true;
w2ui.sidebar.refresh();