Skip to content

Commit b74884a

Browse files
committed
make values on Widgets page have <p> properly
1 parent 7978237 commit b74884a

16 files changed

+48
-0
lines changed

content/docs/widgets/boolean.md

+3
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,11 @@ weight: 20
88
The boolean widget translates a toggle switch input to a true/false value.
99

1010
**Name:** `boolean`
11+
1112
**UI:** toggle switch
13+
1214
**Data type:** boolean
15+
1316
**Options:**
1417

1518
- `default`: accepts `true` or `false`; defaults to `false` when `required` is set to `false`

content/docs/widgets/code.md

+3
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,11 @@ weight: 30
88
The code widget provides a code editor (powered by [Codemirror](https://codemirror.net)) with optional syntax awareness. Can output the raw code value or an object with the selected language and the raw code value.
99

1010
**Name:** `code`
11+
1112
**UI:** code editor
13+
1214
**Data type:** string
15+
1316
**Options:**
1417

1518
- `default_language`: optional; default language to use

content/docs/widgets/color.md

+3
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,11 @@ weight: 40
88
The color widget translates a color picker to a color string.
99

1010
**Name:** `color`
11+
1112
**UI:** color picker
13+
1214
**Data type:** string
15+
1316
**Options:**
1417

1518
- `default`: accepts a string; defaults to an empty string. Sets the default value

content/docs/widgets/datetime.md

+3
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,11 @@ weight: 50
88
The datetime widget translates a datetime picker to a datetime string.
99

1010
**Name:** `datetime`
11+
1112
**UI:** datetime picker
13+
1214
**Data type:** [Day.js](https://day.js.org/)-formatted datetime string
15+
1316
**Options:**
1417

1518
- `default`: accepts a datetime string, or an empty string to accept blank input; otherwise defaults to current datetime.

content/docs/widgets/file.md

+3
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,11 @@ weight: 50
88
The file widget allows editors to upload a file or select an existing one from the media library. The path to the file will be saved to the field as a string.
99

1010
**Name:** `file`
11+
1112
**UI:** file picker button opens media gallery
13+
1214
**Data type:** file path string
15+
1316
**Options:**
1417

1518
- `default`: accepts a file path string; defaults to null

content/docs/widgets/hidden.md

+3
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,11 @@ weight: 60
88
Hidden widgets do not display in the UI. In folder collections that allow users to create new items, you will often want to set a default for hidden fields, so they will be set without requiring an input.
99

1010
**Name:** `hidden`
11+
1112
**UI:** none
13+
1214
**Data type:** any valid data type
15+
1316
**Options:**
1417

1518
- `default`: accepts any valid data type; recommended for collections that allow adding new items

content/docs/widgets/image.md

+3
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,11 @@ weight: 70
88
The image widget allows editors to upload an image or select an existing one from the media library. The path to the image file will be saved to the field as a string.
99

1010
**Name:** `image`
11+
1112
**UI:** file picker button opens media gallery allowing image files (jpg, jpeg, webp, gif, png, bmp, tiff, svg) only; displays selected image thumbnail
13+
1214
**Data type:** file path string
15+
1316
**Options**
1417

1518
- `default`: accepts a file path string; defaults to null

content/docs/widgets/list.md

+3
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,11 @@ weight: 80
88
The list widget allows you to create a repeatable item in the UI which saves as a list of widget values. map a user-provided string with a comma delimiter into a list. You can choose any widget as a child of a list widget—even other lists.
99

1010
**Name:** `list`
11+
1112
**UI:** without any `fields` specified, the list widget defaults to a text input for entering comma-separated values; with `fields` specified, the list widget contains a repeatable child widget, with controls for adding, deleting, and re-ordering the repeated widgets.
13+
1214
**Data type:** list of widget values
15+
1316
**Options**
1417

1518
- `default`: you may specify a list of strings to populate the basic text

content/docs/widgets/map.md

+3
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,11 @@ weight: 90
88
The map widget allows you to edit spatial data using an interactive map. Spatial data for a single piece of geometry saves as a GeoJSON string in WGS84 projection.
99

1010
**Name:** `map`
11+
1112
**UI:** interactive map
13+
1214
**Data type:** GeoJSON string
15+
1316
**Options:**
1417

1518
- `decimals`: accepts a number to specify precision of saved coordinates; defaults to 7 decimals

content/docs/widgets/markdown.md

+3
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,11 @@ The markdown widget provides a full fledged text editor allowing users to format
1010
*Please note:* If you want to use your markdown editor to fill a markdown file contents after its frontmatter, you'll have to name the field `body` so the CMS recognizes it and saves the file accordingly.
1111

1212
**Name:** `markdown`
13+
1314
**UI:** full text editor
15+
1416
**Data type:** markdown
17+
1518
**Options**
1619

1720
- `default`: accepts markdown content

content/docs/widgets/number.md

+3
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,11 @@ weight: 110
88
The number widget uses an HTML number input, saving the value as a string, integer, or floating point number.
99

1010
**Name:** `number`
11+
1112
**UI:** HTML [number input](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/number)
13+
1214
**Data type:** string by default; configured by `value_type` option
15+
1316
**Options**
1417

1518
- `default`: accepts string or number value; defaults to empty string

content/docs/widgets/object.md

+3
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,11 @@ weight: 120
88
The object widget allows you to group multiple widgets together, nested under a single field. You can choose any widget as a child of an object widget—even other objects.
99

1010
**Name:** `object`
11+
1112
**UI:** a field containing one or more child widgets
13+
1214
**Data type:** list of child widget values
15+
1316
**Options**
1417

1518
- `default`: you can set defaults within each sub-field's configuration

content/docs/widgets/relation.md

+3
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,11 @@ weight: 130
88
The relation widget allows you to reference items from another collection. It provides a search input with a list of entries from the collection you're referencing, and the list automatically updates with matched entries based on what you've typed.
99

1010
**Name:** `relation`
11+
1112
**UI:** text input with search result dropdown
13+
1214
**Data type:** data type of the value pulled from the related collection item
15+
1316
**Options:**
1417

1518
- `collection`: (**required**) name of the referenced collection (string)

content/docs/widgets/select.md

+3
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,11 @@ weight: 140
88
The select widget allows you to pick a string value from a dropdown menu.
99

1010
**Name:** `select`
11+
1112
**UI:** select input
13+
1214
**Data type:** string or array
15+
1316
**Options:**
1417

1518
- `default`: `options` must contain any default values

content/docs/widgets/string.md

+3
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,11 @@ weight: 150
88
The string widget translates a basic text input to a string value. For larger textarea inputs, use the text widget.
99

1010
**Name:** `string`
11+
1112
**UI:** text input
13+
1214
**Data type:** string
15+
1316
**Options:**
1417

1518
- `default`: accepts a string; defaults to an empty string

content/docs/widgets/text.md

+3
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,11 @@ weight: 160
88
The text widget takes a multiline text field and saves it as a string. For shorter text inputs, use the string widget.
99

1010
**Name:** `text`
11+
1112
**UI:** HTML textarea
13+
1214
**Data type:** string
15+
1316
**Options:**
1417

1518
- `default`: accepts a string; defaults to an empty string

0 commit comments

Comments
 (0)