NumberField
Sourceimport { NumberField } from "@prestojs/viewmodel";
NumberField<ValueT = string|number,ParsableValueT = ValueT>
Hierarchy
- Field<ValueT,ParsableValueT>
- NumberField
- DecimalField
- FloatField
- IntegerField
Constructor
Arguments:
Argument | Type | Description | |
---|---|---|---|
values An object with the properties below | |||
values.asyncChoices | AsyncChoicesInterface | ||
values.blank | boolean | ||
values.blankAsNull | boolean | ||
values.choices | |[ValueT, string][] | ||
values.defaultValue | null|ValueT| | ||
values.formatterProps | Record | ||
values.helpText | string | ||
values.label | string | ||
values.maxValue | string|number | ||
values.minValue | string|number | ||
values.readOnly | boolean | ||
values.widgetProps | Record | ||
values.writeOnly | boolean |
Methods
Returns:{[fieldName: string]: any }
Returns:{[fieldName: string]: any }
Returns:boolean
Returns:string