unloads the specified view
name | string | view name |
// 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