unloads the specified view
name | string | view name |
// create test view and switch to it
var state = dhxComponent.cells(id).showView("test_view");
console.log(state); // true
// attach some content
dhxComponent.cells(id).attachMenu();
dhxComponent.cells(id).attachGrid();
// go back to default view
var state = dhxComponent.cells(id).showView("def");
console.log(state); // false
// unload test_view
dhxComponent.cells(id).unloadView("test_view");
// open test_view again
var state = dhxComponent.cells(id).showView("test_view");
console.log(state); // true
// attach some content
dhxComponent.cells(id).attachMenu();
dhxComponent.cells(id).attachGrid();
// unload test_view
dhxComponent.cells(id).unloadView("test_view");
// check active view
var name = dhxComponent.cells(id).getViewName();
console.log(name); // "test_view"
Back to top