Type Alias: LunaticPager
LunaticPager =
object
Defined in: src/use-lunatic/type.ts:97
Contains informations about navigation (last page reached, number of pages, subpages, etc.).
This is the object used internally to determine where we are in the navigation.
When we are in a loop, the pager will have additional properties.
Properties
| Property | Type | Description | Defined in |
|---|---|---|---|
iteration? | number | Iteration index (starts at 0). Only in a loop. | src/use-lunatic/type.ts:122 |
lastReachedPage? | PageTag | Last page reached. | src/use-lunatic/type.ts:99 |
linksIterations? | number[] | Only in a Pairwise. | src/use-lunatic/type.ts:136 |
maxPage | number | Last page of the survey. | src/use-lunatic/type.ts:101 |
nbIterations? | number | Number of iterations (i.e. number of people). Only in a loop. | src/use-lunatic/type.ts:128 |
nbSubPages? | number | Number of pages in a loop. Only in a loop. | src/use-lunatic/type.ts:116 |
page | number | Current page. | src/use-lunatic/type.ts:103 |
shallowIteration? | number | Only in a loop. | src/use-lunatic/type.ts:132 |
subPage? | number | Current subpage. Only in a loop. | src/use-lunatic/type.ts:110 |