fix: unformatted text in the widgets docs page (#5954)
This commit is contained in:
parent
d188766b49
commit
9c8c14e9ac
@ -17,12 +17,12 @@ The following options are available on all fields:
|
|||||||
- `required`: specify as `false` to make a field optional; defaults to `true`
|
- `required`: specify as `false` to make a field optional; defaults to `true`
|
||||||
- `hint`: optionally add helper text directly below a widget. Useful for including instructions. Accepts markdown for bold, italic, strikethrough, and links.
|
- `hint`: optionally add helper text directly below a widget. Useful for including instructions. Accepts markdown for bold, italic, strikethrough, and links.
|
||||||
- `pattern`: add field validation by specifying a list with a [regex pattern](https://regexr.com/) and an error message; more extensive validation can be achieved with [custom widgets](../custom-widgets/#advanced-field-validation)
|
- `pattern`: add field validation by specifying a list with a [regex pattern](https://regexr.com/) and an error message; more extensive validation can be achieved with [custom widgets](../custom-widgets/#advanced-field-validation)
|
||||||
- **Example:**
|
- **Example:**
|
||||||
```yaml
|
```yaml
|
||||||
- label: "Title"
|
label: "Title"
|
||||||
name: "title"
|
name: "title"
|
||||||
widget: "string"
|
widget: "string"
|
||||||
pattern: ['.{12,}', "Must have at least 12 characters"]
|
pattern: ['.{12,}', "Must have at least 12 characters"]
|
||||||
```
|
```
|
||||||
|
|
||||||
## Default widgets
|
## Default widgets
|
||||||
|
Loading…
x
Reference in New Issue
Block a user