CheckboxGroupView.legend
property · packages/mixins-ui/src/checkboxGroup.ts:62
readonly legend: stringWhat the options answer, the group's accessible name.
Mixins / foldkit-mixins-ui
interface · packages/mixins-ui/src/checkboxGroup.ts:60
interface CheckboxGroupView<Value extends string, Message> {
readonly legend: string
readonly options: ReadonlyArray<CheckboxGroupOption<Value>>
readonly checked: ReadonlyArray<Value>
readonly onToggle: (value: Value) => NoInfer<Message>
readonly id: string
readonly style?: NamedStyle<typeof CheckboxGroupSlots> | undefined
readonly mixins?: MixinList<Message> | undefined
readonly name?: string | undefined
readonly error?: string | undefined
readonly selectAll?: CheckboxGroupSelectAll<Value, Message> | undefined
}CheckboxGroupView.legendproperty · packages/mixins-ui/src/checkboxGroup.ts:62
readonly legend: stringWhat the options answer, the group's accessible name.
CheckboxGroupView.optionsproperty · packages/mixins-ui/src/checkboxGroup.ts:63
readonly options: ReadonlyArray<CheckboxGroupOption<Value>>CheckboxGroupView.checkedproperty · packages/mixins-ui/src/checkboxGroup.ts:65
readonly checked: ReadonlyArray<Value>The checked values, as the application keeps them.
CheckboxGroupView.onToggleproperty · packages/mixins-ui/src/checkboxGroup.ts:67
readonly onToggle: (value: Value) => NoInfer<Message>The Message a press on an option sends; its type comes from h.
CheckboxGroupView.idproperty · packages/mixins-ui/src/checkboxGroup.ts:69
readonly id: stringPrefixes every id the group draws, unique on the page.
CheckboxGroupView.styleproperty · packages/mixins-ui/src/checkboxGroup.ts:71
readonly style?: NamedStyle<typeof CheckboxGroupSlots> | undefinedA style of CheckboxGroupSlots, for the group's look.
CheckboxGroupView.mixinsproperty · packages/mixins-ui/src/checkboxGroup.ts:73
readonly mixins?: MixinList<Message> | undefinedMixins beside the style.
CheckboxGroupView.nameproperty · packages/mixins-ui/src/checkboxGroup.ts:75
readonly name?: string | undefinedSubmits each checked value under this name, as one hidden input per value, in the options' order.
CheckboxGroupView.errorproperty · packages/mixins-ui/src/checkboxGroup.ts:77
readonly error?: string | undefinedShown under the options; each checkbox is aria-invalid (a group has no such state) and the group is described by it.
CheckboxGroupView.selectAllproperty · packages/mixins-ui/src/checkboxGroup.ts:79
readonly selectAll?: CheckboxGroupSelectAll<Value, Message> | undefinedDraws a select-all row above the options, which the recipe sets the options in from.