Skip to content

Commit bb619b7

Browse files
authored
Update README.md
1 parent 30685df commit bb619b7

File tree

1 file changed

+11
-8
lines changed

1 file changed

+11
-8
lines changed

src/components/form-spinbutton/README.md

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -153,9 +153,10 @@ TBD
153153

154154
By default `<b-form-spinbutton>` will format the displayed number in the users browser default
155155
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`.
159160

160161
```html
161162
<template>
@@ -196,11 +197,13 @@ of the value to the user, and does not affect the `v-model`.
196197
<!-- b-form-spinbotton-locale.vue -->
197198
```
198199

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`.
204207

205208
```html
206209
<template>

0 commit comments

Comments
 (0)