SelectView.id
property · packages/mixins-ui/src/select/view.ts:27
readonly id: stringPrefixes the ids the select draws, unique on the page.
Mixins / foldkit-mixins-ui
interface · packages/mixins-ui/src/select/view.ts:25
interface SelectView<Outer> {
readonly id: string
readonly label: string
readonly options: ReadonlyArray<SelectOption>
readonly value?: string | undefined
readonly onChange?: ((value: string) => NoInfer<Outer>) | undefined
readonly placeholder?: string | undefined
readonly description?: string | undefined
readonly disabled?: boolean | undefined
readonly invalid?: boolean | undefined
readonly name?: string | undefined
readonly style?: NamedStyle<typeof SelectSlots> | undefined
readonly mixins?: MixinList<Outer> | undefined
}SelectView.idproperty · packages/mixins-ui/src/select/view.ts:27
readonly id: stringPrefixes the ids the select draws, unique on the page.
SelectView.labelproperty · packages/mixins-ui/src/select/view.ts:29
readonly label: stringThe select's accessible name, drawn above it.
SelectView.optionsproperty · packages/mixins-ui/src/select/view.ts:30
readonly options: ReadonlyArray<SelectOption>SelectView.valueproperty · packages/mixins-ui/src/select/view.ts:32
readonly value?: string | undefinedThe chosen option's value: the application's. With none given, the browser's first option is chosen.
SelectView.onChangeproperty · packages/mixins-ui/src/select/view.ts:34
readonly onChange?: ((value: string) => NoInfer<Outer>) | undefinedSent with the value a choice leaves. Without it the select is the browser's own.
SelectView.placeholderproperty · packages/mixins-ui/src/select/view.ts:36
readonly placeholder?: string | undefinedAn empty first option that names what to choose, and cannot be chosen again.
SelectView.descriptionproperty · packages/mixins-ui/src/select/view.ts:38
readonly description?: string | undefinedA line under the select, which describes it.
SelectView.disabledproperty · packages/mixins-ui/src/select/view.ts:39
readonly disabled?: boolean | undefinedSelectView.invalidproperty · packages/mixins-ui/src/select/view.ts:40
readonly invalid?: boolean | undefinedSelectView.nameproperty · packages/mixins-ui/src/select/view.ts:42
readonly name?: string | undefinedSubmitted under this name as the chosen value.
SelectView.styleproperty · packages/mixins-ui/src/select/view.ts:43
readonly style?: NamedStyle<typeof SelectSlots> | undefinedSelectView.mixinsproperty · packages/mixins-ui/src/select/view.ts:44
readonly mixins?: MixinList<Outer> | undefined