QuestionnaireForm.Content.AllItems

Render all currently enabled questionnaire items

  • Stable unknown
  • Release candidate since 1.16.1-rc.3
  • Development since 1.16.1-dev.2111+9796905

Content.AllItems reads the form's allItems state and renders each enabled item in a flat View. It is useful with QuestionnaireForm paged={false}.

<QuestionnaireForm questionnaire={questionnaire} paged={false} onSubmit={save}>
  <QuestionnaireForm.Content>
    <QuestionnaireForm.Content.AllItems testID="all-items" />
    <QuestionnaireForm.Content.Error />
  </QuestionnaireForm.Content>
</QuestionnaireForm>;

It accepts ViewProps and adds a themed gap. Each item receives a generated test ID of all-items-<linkId> and updates the form through the normal questionnaire field renderer. The list is flat; nested FHIR item hierarchy is not recreated by this component. It returns null when no enabled items exist.

Last updated on