Interface GroupConfigs<Custom>

interface GroupConfigs<Custom> {
    custom?: Custom;
    defaultDisabled?: boolean;
    disabledOnSelected?: ItemAbledOnSelected;
    enabledOnSelected?: ItemAbledOnSelected;
    groups?: GroupConfigs<Custom>[];
    id?: string;
    questions?: QuestionConfigs<Custom>[];
}

Type Parameters

  • Custom = any

Hierarchy

  • ItemConfigs<Custom>
    • GroupConfigs

Properties

custom?: Custom

Any values that help you determine on how to render the frontend UI or how to perform validation.

defaultDisabled?: boolean

Whether or not this item is disabled by default.

disabledOnSelected?: ItemAbledOnSelected

A list of choice id.

This item will be disabled if the requirement is fulfilled.

enabledOnSelected?: ItemAbledOnSelected

A list of choice id.

This item will be enabled if the requirement is fulfilled.

groups?: GroupConfigs<Custom>[]

Sub-groups.

id?: string

Item id.

It should be unique throughout the entire form.

It will be auto generated if you leave it falsy.

questions?: QuestionConfigs<Custom>[]

Questions under this group.