new SettingPanel( onChange, ...nodes )

Description

Grouping of controls for easier management in settings panels.

Parameters
Name Type Attributes Description
onChange callable

callback to fire when settings change

nodes HTMLElement | jQuery | module:Settings.SettingField | module:Settings.SettingGroup <repeatable>

list of nodes to add to the panel container

Methods


<static> build( onChange, ...nodes ) → {HTMLElement}

Description

Creates a new settings panel

Parameters
Name Type Attributes Description
onChange callable

callback to fire when settings change

nodes HTMLElement | jQuery | module:Settings.SettingField | module:Settings.SettingGroup <repeatable>

list of nodes to add to the panel container

Returns
  • root node for the panel.

getElement() → {HTMLElement}

Returns
  • root node for the panel.

append( ...nodes ) → {module:Settings.SettingPanel}

Description

Adds multiple nodes to this panel.

Parameters
Name Type Attributes Description
nodes HTMLElement | jQuery | SettingField | SettingGroup <repeatable>

list of nodes to add to the panel container

Returns
  • returns self for chaining

onChange()

Description

Fires onchange to listeners