Skip to main content

Module: native/Questionnaire/context

Type aliases

QuestionnaireContext

Ƭ QuestionnaireContext: Object

Type declaration

NameTypeDescription
answersQuestionAnswerInput[]The answers that are given on previous questions
customComponentsQuestionnaireComponentsCustom reply type components
indexnumberThe index of the question that is currently being asked
question?QuestionnaireQuestionThe current question that is being asked
questionnaireQuestionnaireThe original questionnaire that must be filled in
rindexnumberThe index from the end of the question
change(ans: ValueObjects, text?: string) => void-
close?() => void-
input(ans: ValueObjects, text?: string) => void-
next(diff?: number) => void-
submit(answers: QuestionAnswerInput[]) => void-

Variables

Context

Context: Context<null | QuestionnaireContext>

Functions

QuestionnaireProvider

QuestionnaireProvider(__namedParameters): Element

Parameters

NameType
__namedParametersQuestionnaireProviderProps

Returns

Element


useQuestionnaire

useQuestionnaire(): QuestionnaireContext

This hook provides the questionnaire data

Returns

QuestionnaireContext