Confirmed users
502
edits
| Line 20: | Line 20: | ||
The associated module is usually deriving from '''SettingsPanel''' or '''Panel'''. '''Panel''' provides the basic functionality that allows settings app to control the visibility and life cycle. In addition to that, '''SettingsPanel''' further creates bindings between the UI elements and the settings database when the module is being initialized. Details of creating an associated module please refer to [https://github.com/mozilla-b2g/gaia/tree/master/apps/settings#modulepaneljs here]. | The associated module is usually deriving from '''SettingsPanel''' or '''Panel'''. '''Panel''' provides the basic functionality that allows settings app to control the visibility and life cycle. In addition to that, '''SettingsPanel''' further creates bindings between the UI elements and the settings database when the module is being initialized. Details of creating an associated module please refer to [https://github.com/mozilla-b2g/gaia/tree/master/apps/settings#modulepaneljs here]. | ||
=== Panel Navigation === | === Panel Navigation === | ||
'''navigate#SettingsService''' can be used to navigate to any panel by providing the panel id and the options. During the navigation the following functions on the panel are called in sequence: '''init''', '''beforeShow''', and '''show'''. When the panel is being navigated out, '''beforeHide''' and '''hide''' are called. Note that '''init''' is only called once. | |||
=== Dialog Service === | === Dialog Service === | ||