NavPanel is a navigation panel. It is a collection of pages which will guide user from page to page.
Description |
Type | Description | |
currentPageIndex | Number |
Page index number that is currently displayed (index starts at 0). If no page is displayed, index will equal to null. |
pages | Array |
Array of NavContent Objects which represent every page in navigation panel. |
Return type | Description | |
back() | None |
Go to previous page. |
goTo(index) | None |
Jump to a specific page. |
next() | None |
Go to next page. |
pop() | None |
Destroy every page beyond current page, including itself, then go back to previous page. |
push(newPage) | None |
Destroy every page beyond current page, then push a new page, and display it. |
refresh() | None |
Refresh current page. |
Description | ||
page-changing (pageBefore, pageToShow) |
Fires when page is changing |
|
page-destory (page) |
Fires when page is destroyed |
|
page-show (page) |
Fires when page is shown. |
Page index number that is currently displayed (index starts at 0). If no page is displayed, index will equal to null.
Go to previous page.
Jump to a specific page.
<Number>
index
|
Required |
page index you want to display (index start at 0) |
Go to next page.
Destroy every page beyond current page, including itself, then go back to previous page.
Destroy every page beyond current page, then push a new page, and display it.
<NavContent Object>
newPage
|
Required |
new page you want to push. |
Refresh current page.
Fires when page is changing
Fires when page is destroyed
<Object>
page
|
-NavContent JSON Object |