CharField
Sourceimport { CharField } from "@prestojs/viewmodel";
Hierarchy
- Field<string>
- CharField
- EmailField
- PasswordField
- TextField
- URLField
Constructor
Arguments:
Argument | Type | Description | |
---|---|---|---|
values An object with the properties below | |||
values.asyncChoices | AsyncChoicesInterface | ||
values.blank | boolean | ||
values.blankAsNull | boolean | ||
values.choices | |[SingleValueT, string][] | ||
values.defaultValue | null|ValueT| | ||
values.formatterProps | Record | ||
values.helpText | string | ||
values.label | string | ||
values.maxLength | number | ||
values.readOnly | boolean | ||
values.widgetProps | Record | ||
values.writeOnly | boolean |
Methods
Returns:{[fieldName: string]: any }
Returns:
An object with these properties: | |||
---|---|---|---|
Property | Type | Description | |
maxLength | number |
Returns:boolean
Returns:string