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