docs(fix): widget example code layout on Site (#1606)

* Fix widget example layout

* Stop running MarkDown through Prettier.
This commit is contained in:
Tony Alves
2018-08-14 07:37:07 -07:00
committed by Caleb
parent 05622b8eee
commit 583377bc92
16 changed files with 136 additions and 162 deletions

View File

@ -12,24 +12,23 @@ The object widget allows you to group multiple widgets together, nested under a
- `default`: you can set defaults within each sub-field's configuration
- `fields`: (**required**) a nested list of widget fields to include in your widget
- **Example:**
```yaml
- label: 'Profile'
name: 'profile'
widget: 'object'
fields:
- { label: 'Public', name: 'public', widget: 'boolean', default: true }
- { label: 'Name', name: 'name', widget: 'string' }
- label: 'Birthdate'
name: 'birthdate'
widget: 'date'
default: ''
format: 'MM/DD/YYYY'
- label: 'Address'
name: 'address'
widget: 'object'
fields:
- { label: 'Street Address', name: 'street', widget: 'string' }
- { label: 'City', name: 'city', widget: 'string' }
- { label: 'Postal Code', name: 'post-code', widget: 'string' }
```
```yaml
- label: 'Profile'
name: 'profile'
widget: 'object'
fields:
- { label: 'Public', name: 'public', widget: 'boolean', default: true }
- { label: 'Name', name: 'name', widget: 'string' }
- label: 'Birthdate'
name: 'birthdate'
widget: 'date'
default: ''
format: 'MM/DD/YYYY'
- label: 'Address'
name: 'address'
widget: 'object'
fields:
- { label: 'Street Address', name: 'street', widget: 'string' }
- { label: 'City', name: 'city', widget: 'string' }
- { label: 'Postal Code', name: 'post-code', widget: 'string' }
```