|
153 | 153 |
|
154 | 154 | By default `<b-form-spinbutton>` will format the displayed number in the users browser default
|
155 | 155 | locale. You can change the localized formatting by specifying a locale (or array of locales) via
|
156 |
| -the `locale` prop. Number format localization is performed via `Intl.NumberFormat`. The locales |
157 |
| -available will be dependant on the browser implementation. Localization only controls the presentation |
158 |
| -of the value to the user, and does not affect the `v-model`. |
| 156 | +the `locale` prop. Number format localization is performed via |
| 157 | +[`Intl.NumberFormat`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/NumberFormat). |
| 158 | +The locales available will be dependant on the browser implementation. Localization only controls the |
| 159 | +presentation of the value to the user, and does not affect the `v-model`. |
159 | 160 |
|
160 | 161 | ```html
|
161 | 162 | <template>
|
@@ -196,11 +197,13 @@ of the value to the user, and does not affect the `v-model`.
|
196 | 197 | <!-- b-form-spinbotton-locale.vue -->
|
197 | 198 | ```
|
198 | 199 |
|
199 |
| -Alternatively, you can provide your own number formatter function to format the value displayed. |
200 |
| -This is usefull for displaying text instead of a number. To provide a formatter function, set the |
201 |
| -prop `formatter-fn` to a method reference. The formatter is passed a single argument which is |
202 |
| -the current value. Note the formatter only affects the value displayed to the user and does not |
203 |
| -affect the `v-model`. |
| 200 | +Alternatively, you can provide your own number formatter function to format the value displayed. This |
| 201 | +is usefull for displaying text instead of a number, or if you want to implementdifferent features of |
| 202 | +`Intl.NumberFormat`. |
| 203 | + |
| 204 | +To provide a formatter function, set the prop `formatter-fn` to a method reference. The formatter is |
| 205 | +passed a single argument which is the current value. Note the formatter only affects the value displayed |
| 206 | +to the user and does not affect the `v-model`. |
204 | 207 |
|
205 | 208 | ```html
|
206 | 209 | <template>
|
|
0 commit comments