FieldAttrs.type
property · packages/mixins-form/src/index.ts:575
readonly type?: string | undefinedForm / foldkit-mixins-form
interface · packages/mixins-form/src/index.ts:574
interface FieldAttrs {
readonly type?: string | undefined
readonly placeholder?: string | undefined
readonly rows?: number | undefined
readonly autocomplete?: string | undefined
readonly inputMode?: string | undefined
readonly enterKeyHint?: string | undefined
readonly autocapitalize?: string | undefined
readonly spellcheck?: boolean | undefined
readonly min?: string | undefined
readonly max?: string | undefined
readonly step?: string | undefined
}What one key's element takes beyond the base field view: an HTML input type, a placeholder, a textarea's rows, and what a phone's keyboard and the browser's autofill should offer. A renderer reads what fits its element and ignores the rest.
FieldAttrs.typeproperty · packages/mixins-form/src/index.ts:575
readonly type?: string | undefinedFieldAttrs.placeholderproperty · packages/mixins-form/src/index.ts:576
readonly placeholder?: string | undefinedFieldAttrs.rowsproperty · packages/mixins-form/src/index.ts:577
readonly rows?: number | undefinedFieldAttrs.autocompleteproperty · packages/mixins-form/src/index.ts:579
readonly autocomplete?: string | undefinedWhat the browser may fill in: email, name, street-address, one-time-code, off.
FieldAttrs.inputModeproperty · packages/mixins-form/src/index.ts:581
readonly inputMode?: string | undefinedThe keypad a phone shows: numeric, decimal, tel, email, url, search, text. A number field is decimal unless this says otherwise.
FieldAttrs.enterKeyHintproperty · packages/mixins-form/src/index.ts:583
readonly enterKeyHint?: string | undefinedWhat a phone keyboard's Enter key says: next, done, go, search, send.
FieldAttrs.autocapitalizeproperty · packages/mixins-form/src/index.ts:585
readonly autocapitalize?: string | undefinednone, sentences, words, characters. Off by default for an email, tel or url type.
FieldAttrs.spellcheckproperty · packages/mixins-form/src/index.ts:587
readonly spellcheck?: boolean | undefinedOff by default for an email, tel or url type, where a correction is a wrong address.
FieldAttrs.minproperty · packages/mixins-form/src/index.ts:589
readonly min?: string | undefinedThe lowest, highest and stepped value, as the control shows it: read by the renderers of foldkit-mixins-form/declared.
FieldAttrs.maxproperty · packages/mixins-form/src/index.ts:590
readonly max?: string | undefinedFieldAttrs.stepproperty · packages/mixins-form/src/index.ts:591
readonly step?: string | undefined