Field
Sourceimport { Field } from "@prestojs/viewmodel";
Field<ValueT,ParsableValueT = ValueT,SingleValueT = ValueT>
Hierarchy
Constructor
Params:
| Parameter | Type | Description | |
|---|---|---|---|
options An object with the properties below | |||
| options.asyncChoices | AsyncChoicesInterface | ||
| options.blank | boolean | ||
| options.blankAsNull | boolean | ||
| options.choices | Map|[SingleValueT, string][] | ||
| options.defaultValue | null|ValueT| | ||
| 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