String Field
type: "string"
A text input.
Additional Properties
| Property | Type | Description |
|---|---|---|
| defaultValue | string | The default value. |
| regex | string | A regular expression the entered text is validated against. |
Example
mobro-widget-config.json
{
"config": [
{
"name": "title",
"label": "Title",
"type": "string",
"defaultValue": "CPU"
}
]
}
Usage
To read the value of this field in a widget, use
useStringField.