EdgeDocker

EdgeDocker

EdgeDocker can dock its container along the edges of the browser, just like Dev console does.

Constructor

new EdgeDocker(options)

Source:
Create a new EdgeDocker
Parameters:
Name Type Description
options EdgeDocker~config

Members

(static, readonly) MODE

Source:
Properties:
Name Type Description
MAXIMIZED
MINIMIZED
LEFT
RIGHT
BOTTOM
FLOAT
The supported modes of EdgeDocker

Methods

getComponentArea() → {HTMLElement}

Source:
Fetch the component area where DOM elements can be added to this EdgeDocker
Returns:
Type
HTMLElement

loadMode(fallback)

Source:
Load the saved mode, or use fallback if no saved mode
Parameters:
Name Type Description
fallback EdgeDocker.MODE The mode to use if none is saved.

saveMode()

Source:
Save the current mode

setBounds(x, y, width, height, doSaveopt)

Source:
Sets the bounds of this EdgeDocker
Parameters:
Name Type Attributes Default Description
x Number
y Number
width Number
height Number
doSave boolean <optional>
true Determines if the bounds should be saved or not

setMode(mode, doLoadopt)

Source:
Sets the current dock mode of this EdgeDocker
Parameters:
Name Type Attributes Default Description
mode EdgeDocker.MODE
doLoad boolean <optional>
true Determines if this setMode should load bounds from storage or not.

setPosition(x, y)

Source:
Sets the position of this EdgeDocker, Ignored if not in FLOAT mode
Parameters:
Name Type Description
x Number
y Number

Type Definitions

config

Source:
Properties:
Name Type Attributes Default Description
parent Element <optional>
html The parent to attach the docker too.
mode EdgeDocker.MODE <optional>
RIGHT The edge to attach too.
Type:
  • object