JsonField
Sourceimport  { JsonField } from "@prestojs/viewmodel";
Hierarchy
- CharField
 - JsonField
 
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|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
Arguments:
| Argument | Type | Description | |
|---|---|---|---|
| * | viewModel | ViewModelConstructor | 
Returns:void
Returns:
| An object with these properties: | |||
|---|---|---|---|
| Property | Type | Description | |
| maxLength | number | ||
| * | ... | any | |