Class: DeviceSelector

DeviceSelector(options)

Class to get current Display and Device Type.

Constructor

new DeviceSelector(options)

Get the current Display and Device Type of a Browser.
Parameters:
Name Type Description
options object The DeviceSelector options.
Properties
Name Type Description
selector string The DeviceSelector selector options.
Properties
Name Type Description
name string The DeviceSelector selector name for initialisation.
items string The DeviceSelector selector items for initialisation.
Properties
Name Type Description
name string The DeviceSelector selector items name for initialisation.
parent string The DeviceSelector selector parent for initialisation.
Properties
Name Type Description
name string The DeviceSelector selector parent name for initialisation.
device string The DeviceSelector device type options.
Properties
Name Type Description
selector string The DeviceSelector device type selector for initialisation.
Properties
Name Type Description
name string The DeviceSelector device type selector name for initialisation.
display string The DeviceSelector display type options.
Properties
Name Type Description
selector string The DeviceSelector display type selector for initialisation.
Properties
Name Type Description
name string The DeviceSelector display type selector name for initialisation.
Source:

Methods

(static) deviceType(string) → {string|undefined}

Get the current Device Type; // Device Type.
Parameters:
Name Type Description
string string The current Device Type.
Source:
Returns:
The current Device Type Name.
Type
string | undefined

(static) displayType(string) → {string|undefined}

Get the current Display Type.
Parameters:
Name Type Description
string string The current Display Type.
Source:
Returns:
The current Display Type Name.
Type
string | undefined