File tree Expand file tree Collapse file tree 1 file changed +8
-5
lines changed Expand file tree Collapse file tree 1 file changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -103,11 +103,6 @@ countries.setLabel('VN', 'Vietnam').getLabel('VN') // 'Vietnam'
103
103
104
104
You may want an empty value option in the list, so here's the helper function for you. Again, it can be chained with another methods above.
105
105
106
- ### native()
107
-
108
- You may want to display native name of countries, this is the method for you.
109
- The data source of native names can be found [ here] ( https://annexare.github.io/Countries/ )
110
-
111
106
#### Usage
112
107
``` js
113
108
countries .setEmpty (' Select a Country' ).getLabel (' ' ) // 'Select a Country'
@@ -118,7 +113,15 @@ We can even chain `setLabel` and `setEmpty` together to have list with an empty
118
113
countries .setLabel (' VN' , ' Vietnam' ).setEmpty (' Select a Country' ).getLabel (' VN' ) // 'Vietnam'
119
114
```
120
115
116
+ ### native()
117
+
118
+ You may want to display native name of countries, this is the method for you.
119
+ The data source of native names can be found [ here] ( https://annexare.github.io/Countries/ )
121
120
121
+ #### Usage
122
+ ``` js
123
+ countries .native ().getLabel (' TW' ) // 臺灣
124
+ ```
122
125
123
126
124
127
## License
You can’t perform that action at this time.
0 commit comments