Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add instruction on how to add options to select widget #764

Closed
zanona opened this issue Oct 30, 2017 · 3 comments · Fixed by #806
Closed

Add instruction on how to add options to select widget #764

zanona opened this issue Oct 30, 2017 · 3 comments · Fixed by #806

Comments

@zanona
Copy link

zanona commented Oct 30, 2017

At the moment https://www.netlifycms.org/docs/widgets/ doesn't cover how to add options to the select widget.

It would be good to have this documented and also mentioned about the ability to set distinct labels and values

collections:
  foo:
    - {label: 'Option list', name: option-list', widget: select, options: [one, two,three]
    - {label: 'Option list', name: option-list', widget: select, options: [{label: 'Web Development', value: webdev]

https://github.com/netlify/netlify-cms/blob/master/src/components/Widgets/SelectControl.js#L18-L23

@verythorough
Copy link
Contributor

This would be great to add to the Widget docs re-vamp in #619

@verythorough
Copy link
Contributor

Not quite closed yet. #806 addresses part of the issue, but we still need to add info on labels and values.

@verythorough verythorough reopened this Dec 4, 2017
@verythorough
Copy link
Contributor

Closed by #876

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants