gehrj / vue-country-region-select

A vue country select and a vue region select component that is very easy to use and the region select will update automatically depending on your country selected. They can also be used stand alone.
89 stars 84 forks source link

Get object with both region_id and region_name (and countries) #34

Open GMolini opened 4 years ago

GMolini commented 4 years ago

It would be nice to have the option regionName (or countryName) also set the possibilty to return an object with both region_id and region_name (and countries)

gehrj commented 4 years ago

are you asking for something like this? @GMolini

instead of returning: "Illinois"

it would return: { id: "IL", region_name: "Illinois" }

GMolini commented 4 years ago

yes! (sorry for the really late reply, the notification got buried under the rubble)