FileInputView.id
property · packages/mixins-ui/src/fileInput.ts:146
readonly id: stringPrefixes the ids the field draws, unique on the page.
Mixins / foldkit-mixins-ui
interface · packages/mixins-ui/src/fileInput.ts:144
interface FileInputView<Message> {
readonly id: string
readonly label: string
readonly files: ReadonlyArray<File>
readonly onChange: (files: ReadonlyArray<File>) => NoInfer<Message>
readonly onRemove: (file: File) => NoInfer<Message>
readonly name?: string | undefined
readonly accept?: ReadonlyArray<string> | undefined
readonly multiple?: boolean | undefined
readonly disabled?: boolean | undefined
readonly required?: boolean | undefined
readonly invalid?: boolean | undefined
readonly description?: string | undefined
readonly words?: FileInputWords | undefined
readonly style?: NamedStyle<typeof FileInputSlots> | undefined
readonly mixins?: MixinList<Message> | undefined
}FileInputView.idproperty · packages/mixins-ui/src/fileInput.ts:146
readonly id: stringPrefixes the ids the field draws, unique on the page.
FileInputView.labelproperty · packages/mixins-ui/src/fileInput.ts:148
readonly label: stringThe trigger's words, and the input's accessible name: what the files are for.
FileInputView.filesproperty · packages/mixins-ui/src/fileInput.ts:150
readonly files: ReadonlyArray<File>The chosen files, as the application keeps them.
FileInputView.onChangeproperty · packages/mixins-ui/src/fileInput.ts:152
readonly onChange: (files: ReadonlyArray<File>) => NoInfer<Message>Sent with the files a pick chose (none when the dialog is cancelled); fold them in with added and answer with Sync.
FileInputView.onRemoveproperty · packages/mixins-ui/src/fileInput.ts:154
readonly onRemove: (file: File) => NoInfer<Message>Sent with the file whose remove button was pressed, which the list holds by identity; answer with Sync and Focus.
FileInputView.nameproperty · packages/mixins-ui/src/fileInput.ts:156
readonly name?: string | undefinedThe form field the files submit under.
FileInputView.acceptproperty · packages/mixins-ui/src/fileInput.ts:158
readonly accept?: ReadonlyArray<string> | undefinedThe kinds the dialog offers: .ext, type/* or type/subtype tokens, joined with , for the attribute.
FileInputView.multipleproperty · packages/mixins-ui/src/fileInput.ts:159
readonly multiple?: boolean | undefinedFileInputView.disabledproperty · packages/mixins-ui/src/fileInput.ts:161
readonly disabled?: boolean | undefinedThe input takes no pick, the trigger looks off, and the rows cannot be removed.
FileInputView.requiredproperty · packages/mixins-ui/src/fileInput.ts:163
readonly required?: boolean | undefinedThe field must hold a file to submit: the native required.
FileInputView.invalidproperty · packages/mixins-ui/src/fileInput.ts:164
readonly invalid?: boolean | undefinedFileInputView.descriptionproperty · packages/mixins-ui/src/fileInput.ts:166
readonly description?: string | undefinedHelp or the reason it is invalid, read after the name.
FileInputView.wordsproperty · packages/mixins-ui/src/fileInput.ts:167
readonly words?: FileInputWords | undefinedFileInputView.styleproperty · packages/mixins-ui/src/fileInput.ts:169
readonly style?: NamedStyle<typeof FileInputSlots> | undefinedA style of FileInputSlots, for the field's look.
FileInputView.mixinsproperty · packages/mixins-ui/src/fileInput.ts:171
readonly mixins?: MixinList<Message> | undefinedMixins beside the style.