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

See also
Back to top