@@ -134,6 +134,30 @@ As with other form controls, `<b-form-spinbutton>` supports small and large sizi
134
134
135
135
TBD
136
136
137
+ ``` html
138
+ <template >
139
+ <div >
140
+ <label for =" sb-inline" >Inline spin button</label >
141
+ <b-form-spinbutton id =" sb-inline" v-model =" value" inline ></b-form-spinbutton >
142
+ </div >
143
+ </template >
144
+
145
+ <script >
146
+ export default {
147
+ data () {
148
+ return {
149
+ value: 50
150
+ }
151
+ }
152
+ }
153
+ </script >
154
+
155
+ <!-- b-form-spinbotton-inline.vue -->
156
+ ```
157
+
158
+ The spin button will automatically adjust it's width to fit the displayed value. See the
159
+ [ Width section] ( #width ) before for details on controling or setting the width.
160
+
137
161
### Vertical
138
162
139
163
Spinbuttons can be oriented in vertical mode:
@@ -159,8 +183,8 @@ Spinbuttons can be oriented in vertical mode:
159
183
<!-- b-form-spinbotton-vertical.vue -->
160
184
```
161
185
162
- Vertical spin buttons can also be sized using hte ` size ` prop. When in vertical mode, the
163
- spinbutton is rendered as an inline element.
186
+ Vertical spin buttons can also be sized using the ` size ` prop. When in vertical mode, the spin button
187
+ is rendered as an inline element.
164
188
165
189
The spin button will automatically adjust it's width to fit the displayed value. See the
166
190
[ Width section] ( #width ) before for details on controling or setting the width.
@@ -267,14 +291,16 @@ prop places the component in a readonly state (focusable, but the value cannot b
267
291
268
292
``` html
269
293
<template >
270
- <div >
271
- <label for =" sb-disabled" >Disabled spin button</label >
272
- <b-form-spinbutton id =" sb-disabled" v-model =" value" disabled ></b-form-spinbutton >
273
- </div >
274
- <div >
275
- <label for =" sb-readonly" class =" mt-3" >Readonly spin button</label >
276
- <b-form-spinbutton id =" sb-readonly" v-model =" value" readonly ></b-form-spinbutton >
277
- </div >
294
+ <b-row >
295
+ <b-col md =" 6" class =" mb-2" >
296
+ <label for =" sb-disabled" >Disabled spin button</label >
297
+ <b-form-spinbutton id =" sb-disabled" v-model =" value" disabled ></b-form-spinbutton >
298
+ </b-col >
299
+ <b-col md =" 6" class =" mb-2" >
300
+ <label for =" sb-readonly" class =" " >Readonly spin button</label >
301
+ <b-form-spinbutton id =" sb-readonly" v-model =" value" readonly ></b-form-spinbutton >
302
+ </b-col >
303
+ </b-row >
278
304
</template >
279
305
280
306
<script >
0 commit comments