x5engine.responsive

Provide a set of static methods that may help in managing the responsive features of WSX5.

.getCurrentBreakPoint() ⇒ Object

Get the current breakpoint.

Kind: static method of x5engine.responsive
Returns: Object - A JSON object containing the current breakpoint data or null on error
Since: 12.0.0
Example

var data = x5engine.responsive.getCurrentBreakPoint();
// data now contains the following contents
var exampleData = {
    "name": "Desktop", // The breakpoint name
    "start": 400, // The screen width at which this breakpoint starts to be valid
    "end": 200, // The screen width at which this breakpoint ends to be valied
    "fluid": false // True if this breakpoint uses a fluid template
}

.isDesktopMode() ⇒ Boolean

Define if the current viewport is the largest one, used for desktop screens

Kind: static method of x5engine.responsive
Returns: Boolean - True if the current viewport is a desktop screen (largest breakpoint)
Since: 12.0.0