Aller au contenu principal

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​

PropertyTypeDescriptionDefined in
iteration?numberIteration index (starts at 0). Only in a loop.src/use-lunatic/type.ts:122
lastReachedPage?PageTagLast page reached.src/use-lunatic/type.ts:99
linksIterations?number[]Only in a Pairwise.src/use-lunatic/type.ts:136
maxPagenumberLast page of the survey.src/use-lunatic/type.ts:101
nbIterations?numberNumber of iterations (i.e. number of people). Only in a loop.src/use-lunatic/type.ts:128
nbSubPages?numberNumber of pages in a loop. Only in a loop.src/use-lunatic/type.ts:116
pagenumberCurrent page.src/use-lunatic/type.ts:103
shallowIteration?numberOnly in a loop.src/use-lunatic/type.ts:132
subPage?numberCurrent subpage. Only in a loop.src/use-lunatic/type.ts:110