I have the Treeview component attached to a cell in the Sidebar component which is set to autohide. The problem is that when the sidebar hides itself the TreeeView component stays visible.
Hi, аttach the treeview to sidebar. Similarly, this code:
var sidebar_1 = a.attachSidebar({template: ‘details’, width: ‘200’, autohide: ‘’, header: ‘’});
sidebar_1.addItem({id: ‘sidebar_item_1’, text: ‘sidebar_item_1’});
var sidebar_item_1 = sidebar_1.cells(‘sidebar_item_1’);
sidebar_item_1.setActive();
sidebar_item_1.hide();
var treeview_1 = sidebar_item_1.attachTreeView();
treeview_1.loadStruct(“data/tree.json”)
Please check the next sample, it implements the same use-case and it works correctly