Mixins / foldkit-mixins-ui

QuestionnaireView

interface · packages/mixins-ui/src/questionnaire.ts:446

interface QuestionnaireView<Message> {
  readonly model: Model
  readonly onMessage: (message: typeof Message.Type) => NoInfer<Message>
  readonly title?: string | undefined
  readonly words?: Partial<QuestionnaireWords> | undefined
  readonly style?: NamedStyle<typeof QuestionnaireSlots> | undefined
  readonly mixins?: MixinList<Message> | undefined
  readonly radioGroup?: NamedStyle<typeof RadioGroupSlots> | undefined
  readonly checkboxGroup?: NamedStyle<typeof CheckboxGroupSlots> | undefined
  readonly input?: NamedStyle<typeof InputSlots> | undefined
  readonly textarea?: NamedStyle<typeof TextareaSlots> | undefined
  readonly button?: NamedStyle<typeof ButtonSlots> | undefined
  readonly submitButton?: NamedStyle<typeof ButtonSlots> | undefined
}

Members

QuestionnaireView.model

property · packages/mixins-ui/src/questionnaire.ts:447

readonly model: Model

QuestionnaireView.onMessage

property · packages/mixins-ui/src/questionnaire.ts:449

readonly onMessage: (message: typeof Message.Type) => NoInfer<Message>

Lifts the questionnaire's own Messages into the application's.

QuestionnaireView.title

property · packages/mixins-ui/src/questionnaire.ts:451

readonly title?: string | undefined

A heading over the questions, which names the form.

QuestionnaireView.words

property · packages/mixins-ui/src/questionnaire.ts:453

readonly words?: Partial<QuestionnaireWords> | undefined

The buttons' names, and what the form says of a missing or skipped answer and of where the reader is.

QuestionnaireView.style

property · packages/mixins-ui/src/questionnaire.ts:455

readonly style?: NamedStyle<typeof QuestionnaireSlots> | undefined

A style of QuestionnaireSlots, for the questionnaire's own parts.

QuestionnaireView.mixins

property · packages/mixins-ui/src/questionnaire.ts:457

readonly mixins?: MixinList<Message> | undefined

Mixins beside the style.

QuestionnaireView.radioGroup

property · packages/mixins-ui/src/questionnaire.ts:459

readonly radioGroup?: NamedStyle<typeof RadioGroupSlots> | undefined

The single choices' look.

QuestionnaireView.checkboxGroup

property · packages/mixins-ui/src/questionnaire.ts:461

readonly checkboxGroup?: NamedStyle<typeof CheckboxGroupSlots> | undefined

The multiple choices' look.

QuestionnaireView.input

property · packages/mixins-ui/src/questionnaire.ts:463

readonly input?: NamedStyle<typeof InputSlots> | undefined

The one-line answers' and the other fields' look.

QuestionnaireView.textarea

property · packages/mixins-ui/src/questionnaire.ts:465

readonly textarea?: NamedStyle<typeof TextareaSlots> | undefined

The multi-line answers' look.

QuestionnaireView.button

property · packages/mixins-ui/src/questionnaire.ts:467

readonly button?: NamedStyle<typeof ButtonSlots> | undefined

Back's look.

QuestionnaireView.submitButton

property · packages/mixins-ui/src/questionnaire.ts:469

readonly submitButton?: NamedStyle<typeof ButtonSlots> | undefined

Next's and Submit's look.