TextareaField.id
property · packages/mixins-ui/src/textarea.ts:210
readonly id: stringMixins / foldkit-mixins-ui
interface · packages/mixins-ui/src/textarea.ts:209
interface TextareaField<Message> {
readonly id: string
readonly label: string
readonly field: FieldValidation.Field<unknown>
readonly changed: (value: string) => Message
readonly rows?: number | undefined
readonly maxRows?: number | undefined
readonly maxLength?: number | undefined
readonly count?: boolean | undefined
readonly footer?: ReadonlyArray<Html> | undefined
readonly placeholder?: string | undefined
readonly style?: NamedStyle<typeof TextareaSlots> | undefined
readonly mixins?: MixinList<Message> | undefined
readonly draw?:
((parts: TextareaParts, h: HtmlBuilder<Message>) => Html) | undefined
}A textarea field in one call: a field's state drawn through view with
its label, control, and description placed. The value is drawn with
String(), as the base field view draws any draft. draw places the
parts; the default stacks them, the description and the count sharing the
row under the field. With a footer, the control is a frame holding the
text and the footer under it, the count at the footer's end. rows,
maxRows, maxLength and placeholder ride through only where given.
TextareaField.idproperty · packages/mixins-ui/src/textarea.ts:210
readonly id: stringTextareaField.labelproperty · packages/mixins-ui/src/textarea.ts:211
readonly label: stringTextareaField.fieldproperty · packages/mixins-ui/src/textarea.ts:212
readonly field: FieldValidation.Field<unknown>TextareaField.changedproperty · packages/mixins-ui/src/textarea.ts:213
readonly changed: (value: string) => MessageTextareaField.rowsproperty · packages/mixins-ui/src/textarea.ts:214
readonly rows?: number | undefinedTextareaField.maxRowsproperty · packages/mixins-ui/src/textarea.ts:215
readonly maxRows?: number | undefinedTextareaField.maxLengthproperty · packages/mixins-ui/src/textarea.ts:216
readonly maxLength?: number | undefinedTextareaField.countproperty · packages/mixins-ui/src/textarea.ts:218
readonly count?: boolean | undefinedWhether to draw how many characters are written; default whether there is a maxLength.
TextareaField.footerproperty · packages/mixins-ui/src/textarea.ts:220
readonly footer?: ReadonlyArray<Html> | undefinedControls in a row under the text, inside the field's box: a toolbar, a send button.
TextareaField.placeholderproperty · packages/mixins-ui/src/textarea.ts:221
readonly placeholder?: string | undefinedTextareaField.styleproperty · packages/mixins-ui/src/textarea.ts:223
readonly style?: NamedStyle<typeof TextareaSlots> | undefinedA style of TextareaSlots, for the field's own look.
TextareaField.mixinsproperty · packages/mixins-ui/src/textarea.ts:225
readonly mixins?: MixinList<Message> | undefinedMixins beside the style, for state or behavior the style does not own.
TextareaField.drawproperty · packages/mixins-ui/src/textarea.ts:227
readonly draw?:
((parts: TextareaParts, h: HtmlBuilder<Message>) => Html) | undefinedPlaces the parts: control holds the footer, and the count when the footer does.