Namespace: emulator

Granite.author.ui. emulator

Controls the UI for the Emulator options

Source:
ui/ui.emulator.js

Members


<private, static> breakpoints

Source:
ui/ui.emulator.js

<static> currentConfig :object

Currently applied config or null

Type:
  • object
Source:
ui/ui.emulator.js

<static> currentDevice :object

Currently applied device or null

Type:
  • object
Source:
ui/ui.emulator.js

Methods


<static> applyDevice(devicename, config)

Applies a device based on the name which has to be part of the page info
Or a forced config

Parameters:
Name Type Argument Description
devicename String
config <optional>
Source:
ui/ui.emulator.js

<static> reset()

Resets the Emulator to its native state

Source:
ui/ui.emulator.js

<static> resetBreakpoints()

shows the breakpoints of the page info

Source:
ui/ui.emulator.js

<static> showCurrentDeviceTooltip()

shows the device which is currently chosen as a tooltip

Source:
ui/ui.emulator.js

<static> showHeightLine()

Source:
ui/ui.emulator.js

<static> showWidthLine()

Source:
ui/ui.emulator.js

<static> toggle()

Show/hide the emulator bar

Source:
ui/ui.emulator.js
Fires:

<static> updateEmulatorBar()

updates the UI state of the bar

Source:
ui/ui.emulator.js