opens a UI element in the fullscreen mode
element | object|string|HTMLElement | the Webix view, HTML element or their IDs |
settings | object | the configuration settings of the fullscreen container |
object | object of a window that contains the view in the fullscreen mode |
webix.fullscreen.set("chart");
Only one UI element can be in the fullscreen mode. If set() is called when some element is in fullscreen, that element is minimized.
Here is what you can do:
webix.fullscreen.set("list",{ head:"Full list" });
webix.fullscreen.set("list", {
head:{
view:"toolbar", elements:[
{ template:"Awesome big list" },
{ view:"icon", icon:"mdi mdi-fullscreen-exit", click:function(){
webix.fullscreen.exit();
} }
]
}
});
webix.fullscreen.set("list", { head: false });
In this case, you will be able to exit fullscreen mode by calling webix.fullscreen.exit().
webix.fullscreen.set("chart",{
css: "fullscreen",
head: "Fullscreen enabled"
});