Aller au contenu principal

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

PropertyTypeDescriptionDefined in
iteration?numberIteration index (starts at 0). Only in a loop.src/use-lunatic/type.ts:121
lastReachedPage?PageTagLast page reached.src/use-lunatic/type.ts:98
linksIterations?number[]Only in a loop.src/use-lunatic/type.ts:135
maxPagenumberLast page of the survey.src/use-lunatic/type.ts:100
nbIterations?numberNumber of iterations (i.e. number of people). Only in a loop.src/use-lunatic/type.ts:127
nbSubPages?numberNumber of pages in a loop. Only in a loop.src/use-lunatic/type.ts:115
pagenumberCurrent page.src/use-lunatic/type.ts:102
shallowIteration?numberOnly in a loop.src/use-lunatic/type.ts:131
subPage?numberCurrent subpage. Only in a loop.src/use-lunatic/type.ts:109