Aller au contenu principal

Type Alias: LunaticPager

LunaticPager: object

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.

Type declaration

iteration?

optional iteration: number

Iteration index (starts at 0).

Only in a loop.

lastReachedPage?

optional lastReachedPage: PageTag

Last page reached.

linksIterations?

optional linksIterations: number[]

Only in a loop.

maxPage

maxPage: number

Last page of the survey.

nbIterations?

optional nbIterations: number

Number of iterations (i.e. number of people).

Only in a loop.

nbSubPages?

optional nbSubPages: number

Number of pages in a loop.

Only in a loop.

page

page: number

Current page.

shallowIteration?

optional shallowIteration: number

Only in a loop.

subPage?

optional subPage: number

Current subpage.

Only in a loop.

Defined in

src/use-lunatic/type.ts:100