Type Alias: LunaticPager
LunaticPager =
object
Defined in: src/use-lunatic/type.ts:96
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:121 |
lastReachedPage? | PageTag | Last page reached. | src/use-lunatic/type.ts:98 |
linksIterations? | number [] | Only in a loop. | src/use-lunatic/type.ts:135 |
maxPage | number | Last page of the survey. | src/use-lunatic/type.ts:100 |
nbIterations? | number | Number of iterations (i.e. number of people). Only in a loop. | src/use-lunatic/type.ts:127 |
nbSubPages? | number | Number of pages in a loop. Only in a loop. | src/use-lunatic/type.ts:115 |
page | number | Current page. | src/use-lunatic/type.ts:102 |
shallowIteration? | number | Only in a loop. | src/use-lunatic/type.ts:131 |
subPage? | number | Current subpage. Only in a loop. | src/use-lunatic/type.ts:109 |