Update widget documentation
This commit is contained in:
@ -4,14 +4,26 @@ title: String
|
||||
weight: 24
|
||||
---
|
||||
|
||||
The string widget translates a basic text input to a string value. For larger textarea inputs, use the text widget.
|
||||
## Overview
|
||||
|
||||
- **Name:** `string`
|
||||
- **UI:** text input
|
||||
- **Data type:** string
|
||||
- **Options:**
|
||||
- `default`: accepts a string; defaults to an empty string
|
||||
- **Example:**
|
||||
```yaml
|
||||
- {label: "Title", title: "title", widget: "string"}
|
||||
```
|
||||
- **UI:** Text input
|
||||
- **Data type:** `string`
|
||||
|
||||
The string widget translates a basic text input to a string value. For larger textarea inputs, use the text widget.
|
||||
|
||||
## Widget options
|
||||
|
||||
For common options, see [Common widget options](/docs/widgets#common-widget-options).
|
||||
|
||||
| Name | Type | Default | Description |
|
||||
| ------- | ------ | ------- | ------------------------------------------------------------- |
|
||||
| default | string | `''` | _Optional_. The default value for the field. Accepts a string |
|
||||
|
||||
## Example
|
||||
|
||||
```yaml
|
||||
name: title
|
||||
label: Title
|
||||
widget: string
|
||||
```
|
||||
|
Reference in New Issue
Block a user