1.0.7 • Published 5 years ago
netlify-cms-widget-country-select v1.0.7
netlify-cms-widget-country-select
A select widget for netlify-cms providing all countries of the world as options.
Install
As an npm package:
npm install --save netlify-cms-widget-country-select
import { CountrySelectControl } from 'netlify-cms-widget-country-select'
CMS.registerWidget('country-select', CountrySelectControl)
Via script
tag:
<script src="https://unpkg.com/netlify-cms-widget-country-select@^1.0.0"></script>
<script>
CMS.registerWidget('country-select', window.countrySelectControl, window.countrySelectPreview)
</script>
How to use
Add to your Netlify CMS configuration:
fields:
- { name: 'country', label: 'Country', widget: country-select }
Support
For help with this widget, open an issue or ask the Netlify CMS community in Gitter.