Class

Settings

Settings(props)

Constructor

# new Settings(props)

Link the DOM elements (panel, buttons and overlay)

Parameters:
Name Type Default Description
props object null

Properties effects.

panel object
panel.trans object
panel.trans.effect string

Effect name. One of slide, fade or none. Default slide.

panel.trans.duration string

Duration of the effect in milliseconds. Default 300.

overlay object
panel.trans object
overlay.trans.effect string

Effect name. One of slide, fade or none. Default fade.

overlay.trans.duration string

Duration of the effect in milliseconds. Default 100.

View Source Settings.js, line 9

Methods

# addOption(option)

Add an option to the panel.

Parameters:
Name Type Description
option BaseField

Any kind of field for add.

View Source Settings.js, line 64

# applyInitialChanges()

Apply initial configurations.

View Source Settings.js, line 49

# cancel()

Restore the settings before open the panel and close the panel.

View Source Settings.js, line 106

# close()

Close the panel with the proper effect.

View Source Settings.js, line 151

# hide()

Hide the panel without effects.

View Source Settings.js, line 169

# isClosed()

Check if the panel is closed.

Parameters:
Type Description
boolean

View Source Settings.js, line 124

# open()

Open the panel with the proper effect.

View Source Settings.js, line 131

# save()

Save all the settings on the panel and close the panel.

View Source Settings.js, line 91

# setListeners()

Add listeners for the buttons of the panel and for the overlay.

View Source Settings.js, line 71

# toggle()

Toogle the open/close state of the panel.

View Source Settings.js, line 115