Module: SettingsPanel

SettingsPanel extends Panel with basic settings services. It presets the UI elements based on the values in mozSettings and add listeners responding to mozSettings changes in onReady. In onInit it parses the panel element for activating links. It also removes listeners in onDone so that we can avoid unwanted UI updates when the panel is outside of the viewport.

Source:

Members

(inner) _panel :HTMLElement

The root element of the panel.

The root element of the panel.

Type:
  • HTMLElement
Source:

Methods

(inner) _addListeners(panel)

Add listeners to make the panel be able to respond to setting changes and user interactions.

Add listeners to make the panel be able to respond to setting changes and user interactions.

Parameters:
Name Type Description
panel HTMLElement
Source:

(inner) _removeListeners(panel)

Remove all listeners.

Remove all listeners.

Parameters:
Name Type Description
panel HTMLElement
Source:

(inner) _settingsChangeHandler(event)

The handler is called when settings change.

The handler is called when settings change.

Parameters:
Name Type Description
event Event
Source: