Webix full screen state

Hi is there a way to know globally in code if some element in full state mode right now?

 .isFullScreenModeActive() // true or false

As far as I see it, there is no public way to know that as the view that is opened is stored in a private property (would be available in non-minified sources as webix.fullscreen._view, in the current minified Webix latest it’s webix.fullscreen.Ht) Code Snippet You cannot rely on this.

Therefore I would advise to store it in your own variable whenever you call webix.fullscreen.set and clear it whenever you call webix.fullscreen.exit.

Ok thanks

@roma, there are a couple of options for how this can be done.

  1. webix.fullscreen.set, starting from 8.3.4 version, returns window (which is used to make widgets fullscreen). You can check if it exists - Code Snippet

  2. You can just modify set and exit methods - Code Snippet

so it means that to use one variable to save the current state even for different elements in full screen mode. For me it is very convenient solution and easy to understand, thanks! As know all genius solutions are simple :slight_smile: