fix widget documentation accuracy (#480)

This commit is contained in:
Shawn Erquhart 2017-07-10 13:33:24 -04:00 committed by Benaiah Mischenko
parent cdf7c3a2be
commit e7c859eb12

View File

@ -4,19 +4,19 @@
Widgets define the data type and interface for entry fields. Netlify CMS comes with several built-in widgets, including: Widgets define the data type and interface for entry fields. Netlify CMS comes with several built-in widgets, including:
Widget | UI | Data Type | Name | UI | Data Type |
--- | --- | --- | -------- | --------------------------------- | --------------------------------------------------|
`string` | text input | string | `string` | text input | string |
`boolean` | select input | switch for true and false | `boolean` | toggle switch | boolean |
`text` | text area input | plain text, multiline input | `text` | textarea input | string (multiline) |
`number` | text input with `+` and `-` buttons | number | `number` | number input | number |
`markdown` | rich text editor with raw option | markdown-formatted string | `markdown` | rich text editor | string (markdown) |
`datetime` | date picker widget | ISO date string | `datetime` | date picker | string (ISO date) |
`image` | file picker widget with drag-and-drop | file path saved as string, image uploaded to media folder | `select` | select input (dropdown) | string |
`hidden` | No UI | Hidden element, typically only useful with a `default` attribute | `image` | file picker w/ drag and drop | image file |
`list` | text input | strings separated by commas | `file` | file picker w/ drag and drop | file |
`file` | file input | input file upload | `hidden` | none | string |
`select` | select input | dropdown filled with `options` from the config | `object` | group of other widgets | Immutable Map containing field values |
`object` | custom | `fields` as a list defined in the config | `list` | repeatable group of other widgets | Immutable List of objects containing field values |
Were always adding new widgets, and you can also [create your own](/docs/extending). Were always adding new widgets, and you can also [create your own](/docs/extending)!