Pages module.
- Source:
Members
(static) active :boolean
- Source:
Type:
- boolean
(static) activePages :jQuery
- Source:
Type:
(static) current :Array|jQuery
- Source:
Type:
- Array | jQuery
Methods
(static) _flipTo(pageEl, newIndex)
- Source:
Switches to a page
Parameters:
Name | Type | Description |
---|---|---|
pageEl |
Element | page element |
newIndex |
number | new index |
(static) _flipToFirst()
- Source:
Switches to first page
(static) _flipToLast()
- Source:
Switches to last page
(static) _focusOnFirstQuestion(pageEl)
- Source:
Focuses on first question and scrolls it into view
Parameters:
Name | Type | Description |
---|---|---|
pageEl |
Element | page element |
(static) _getCurrent() → {Element}
- Source:
Returns:
current page
- Type
- Element
(static) _getCurrentIndex() → {number}
- Source:
Returns:
Current page index
- Type
- number
(static) _getNext(currentIndex) → {jQuery}
- Source:
Parameters:
Name | Type | Description |
---|---|---|
currentIndex |
number | current index |
Returns:
Next page
- Type
- jQuery
(static) _getPrev(currentIndex) → {jQuery}
- Source:
Parameters:
Name | Type | Description |
---|---|---|
currentIndex |
number | current index |
Returns:
Previous page
- Type
- jQuery
(static) _next() → {Promise}
- Source:
Changes the pages.next()
function to return a Promise
, wrapping one of the following values:
Returns:
wrapping {boolean} or {number}. If a {number}, this is the index into
activePages
of the new current page; if a {boolean}, {false} means that validation
failed, and {true} that validation passed, but the page did not change.
- Type
- Promise
(static) _prev()
- Source:
Switches to previous page
(static) _setBranchHandlers()
- Source:
sets branch handlers
(static) _setButtonHandlers()
- Source:
sets button handlers
(static) _setLangChangeHandlers()
- Source:
sets language change handlers
(static) _setRepeatHandlers()
- Source:
sets repeat handlers
(static) _setSwipeHandlers()
- Source:
sets swipe handlers
(static) _setTocHandlers()
- Source:
sets toc handlers
(static) _setToCurrent(pageEl)
- Source:
Parameters:
Name | Type | Description |
---|---|---|
pageEl |
Element | page element |
(static) _toggleButtons(indexopt)
- Source:
Updates status of navigation buttons
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
index |
number |
<optional> |
index of current page |
(static) _updateAllActive(all)
- Source:
Parameters:
Name | Type | Description |
---|---|---|
all |
Array.<Node> | all elements that represent a page |
(static) _updateToc()
- Source:
Updates Table of Contents
(static) flipToPageContaining($e)
- Source:
flips to the page provided as jQueried parameter or the page containing the jQueried element provided as parameter alternatively, (e.g. if a top level repeat without field-list appearance is provided as parameter) it flips to the page contained with the jQueried parameter;
Parameters:
Name | Type | Description |
---|---|---|
$e |
jQuery | Element on page to flip to |
(static) init()
- Source: