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 = myWins.window(id).showView("test_view");
console.log(state); // true
 
// attach some content
myWins.window(id).attachMenu();
myWins.window(id).attachGrid();
 
// go back to default view
var state = myWins.window(id).showView("def");
console.log(state); // false
 
// unload test_view
myWins.window(id).unloadView("test_view");
 
// open test_view again
var state = myWins.window(id).showView("test_view");
console.log(state); // true
 
// attach some content
myWins.window(id).attachMenu();
myWins.window(id).attachGrid();
 
// unload test_view
myWins.window(id).unloadView("test_view");
 
// check active view
var name = myWins.window(id).getViewName();
console.log(name); // "test_view"

Back to top