boolean widget & some documentation (#396)
This commit is contained in:
committed by
Benaiah Mischenko
parent
982d1db25d
commit
aac5339ac0
@ -7,6 +7,7 @@ Widgets define the data type and interface for entry fields. Netlify CMS comes w
|
||||
Widget | UI | Data Type
|
||||
--- | --- | ---
|
||||
`string` | text input | string
|
||||
`boolean` | select input | switch for true and false
|
||||
`text` | text area input | plain text, multiline input
|
||||
`number` | text input with `+` and `-` buttons | number
|
||||
`markdown` | rich text editor with raw option | markdown-formatted string
|
||||
@ -14,5 +15,8 @@ Widget | UI | Data Type
|
||||
`image` | file picker widget with drag-and-drop | file path saved as string, image uploaded to media folder
|
||||
`hidden` | No UI | Hidden element, typically only useful with a `default` attribute
|
||||
`list` | text input | strings separated by commas
|
||||
`file` | file input | input file upload
|
||||
`select` | select input | dropdown filled with `options` from the config
|
||||
`object` | custom | `fields` as a list defined in the config
|
||||
|
||||
We’re always adding new widgets, and you can also [create your own](/docs/extending).
|
||||
|
Reference in New Issue
Block a user