FileField
Sourceimport { FileField } from "@prestojs/viewmodel";
Hierarchy
- Field<File>
- FileField
- ImageField
Constructor
Params:
Parameter | Type | Description | |
---|---|---|---|
options An object with the properties below | |||
options.asyncChoices | AsyncChoicesInterface | ||
options.blank | boolean | ||
options.blankAsNull | boolean | ||
options.choices | Map|[File, string][] | ||
options.defaultValue | null|File| | ||
options.formatterProps | Record | ||
options.helpText | string | ||
options.label | string | ||
options.readOnly | boolean | ||
options.widgetProps | Record | ||
options.writeOnly | boolean |
Methods
Returns:Field
Params:
Parameter | Type | Description | |
---|---|---|---|
* | viewModel | ViewModelConstructor |
Returns:void