Check documentation for the latest version of dhtmlxSuite unloadView DHTMLX Docs

unloadView

unloads the specified view

void unloadView(string name);
namestringview name

Example

// 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