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

Per-country feature to use short values for regions #9

Open
dlong500 opened this issue Mar 10, 2017 · 1 comment
Open

Per-country feature to use short values for regions #9

dlong500 opened this issue Mar 10, 2017 · 1 comment

Comments

@dlong500
Copy link

I think it would be great to add some props to the RegionDropdown where a list of countries could be specified that override the labelType and valueType props only for those countries.

For example, you could have something like valueTypeCountriesShort={['US']} as well as labelTypeCountriesShort={['US']} to make only the United States show regions using short codes even if the overall setting for valueType and labelType is "full". I don't really know if any other countries use short codes for addresses, but in America it is standard to use short codes for the states, so it would be helpful to have the option of using short codes for American states but full values for all other country regions.

@leocifer
Copy link

+1

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

No branches or pull requests

3 participants