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