Class: SidebarModel

Sidebar SidebarModel

SidebarModel

new SidebarModel()

modules/sidebar/model.js, line 23
Properties:
Name Type Default Description
isVisible Boolean false Flag if sidebar is visible
isMobile Boolean false Flag if sidebar is mobile
Fires:
Listens to Events:

Extends

Methods

addContent(element, dragable){void}

modules/sidebar/model.js, line 44
passes a DOM element to the view
Name Type Description
element DOM from a tool view
dragable boolean is the sidebar resizeable? default = false
Fires:

resize(width){void}

modules/sidebar/model.js, line 99
resizes the open window
Name Type Description
width * the new width

setIsMobile(value)

modules/sidebar/model.js, line 53
Setter for "isMobile".
Name Type Description
value Boolean Flag if sidebar is mobile.

setIsVisible(value)

modules/sidebar/model.js, line 83
Setter for "isVisible".
Name Type Description
value Boolean Flag if sidebar is visible.

setWidth(value)

modules/sidebar/model.js, line 91
Setter for "width".
Name Type Description
value String The width of the sidebar in percent. e.g. "30%".

toggle(isVisible, width){void}

modules/sidebar/model.js, line 63
Toggles the visibility of the sidebar. Sets the width if not undefined
Name Type Description
isVisible Boolean Flag if sidebar is visible.
width String Width for sidebar
Fires: