TextField
Sourceimport { TextField } from "@prestojs/viewmodel";
Hierarchy
- CharField
- TextField
Constructor
Params:
| Parameter | Type | Description | |
|---|---|---|---|
values An object with the properties below | |||
| values.asyncChoices | AsyncChoicesInterface | ||
| values.blank | boolean | ||
| values.blankAsNull | boolean | ||
| values.choices | Map|[SingleValueT, string][] | ||
| values.defaultValue | null|string| | ||
| values.formatterProps | Record | ||
| values.helpText | string | ||
| values.label | string | ||
| values.maxLength | number | ||
| values.readOnly | boolean | ||
| values.widgetProps | Record | ||
| values.writeOnly | boolean | ||
Methods
Returns:Field
Params:
| Parameter | Type | Description | |
|---|---|---|---|
| * | viewModel | ViewModelConstructor |
Returns:void
Returns:
| An object with these properties: | |||
|---|---|---|---|
| Property | Type | Description | |
| maxLength | number | ||
| * | ... | any | |