Module: Panel

Panel is the basic element for navigation. Which defines Six basic functions: show, hide, beforeShow, beforeHide, init, and uninit for navigation. These functions are called by SettingsService during the navigation. Internal functions onShow, onHide, onBeforeShow, onBeforeHide, onInit, and onUninit are called respectively in the basic functions.

Source:

Members

initialized

Get a value that indicates whether the panel has been initialized.

Get a value that indicates whether the panel has been initialized.

Source:

Methods

beforeHide(panel, beforeShowOptions)

Called when the panel is about to be navigated out of the viewport.

Called when the panel is about to be navigated out of the viewport.

Parameters:
Name Type Description
panel HTMLElement
beforeShowOptions Object
Source:

beforeShow(panel, beforeShowOptions)

Called when the panel is about to be navigated to into the viewport.

Called when the panel is about to be navigated to into the viewport.

Parameters:
Name Type Description
panel HTMLElement
beforeShowOptions Object
Source:

hide()

Called when the panel is navigated out of the viewport.

Called when the panel is navigated out of the viewport.

Source:

init(panel, initOptions)

Called at the first time when the beforeShow function is called.

Called at the first time when the beforeShow function is called.

Parameters:
Name Type Description
panel HTMLElement
initOptions Object
Source:

show(panel, showOptions)

Called when the panel is navigated into the viewport.

Called when the panel is navigated into the viewport.

Parameters:
Name Type Description
panel HTMLElement
showOptions Object
Source:

uninit()

Called when cleanup.

Called when cleanup.

Source: