File tree Expand file tree Collapse file tree 1 file changed +33
-0
lines changed
src/components/form-datepicker Expand file tree Collapse file tree 1 file changed +33
-0
lines changed Original file line number Diff line number Diff line change @@ -481,6 +481,39 @@ You can use the `isRTL` scoped property to "flip" the prev vs next button conten
481481left-to-right to right-to-left orientation change &mdash ; i.e. the previous year button will be on
482482the right when ` isRTL ` is ` true ` , instead of the left.
483483
484+ ### Full width calendar dropdown
485+
486+ To create a full width calendar dropdown (where the width matches the input width), simply set the
487+ ` menu-class ` prop to ` 'w-100' ` and set the ` calendar-width ` prop to ` '100%' ` :
488+
489+ ``` html
490+ <template >
491+ <div >
492+ <label for =" datepicker-full-width" >Choose a date</label >
493+ <b-form-datepicker
494+ id =" datepicker-full-width"
495+ v-model =" value"
496+ menu-class =" w-100"
497+ calendar-width =" 100%"
498+ class =" mb-2"
499+ ></b-form-datepicker >
500+ <p >Value: '{{ value }}'</p >
501+ </div >
502+ </template >
503+
504+ <script >
505+ export default {
506+ data () {
507+ return {
508+ value: ' '
509+ }
510+ }
511+ }
512+ </script >
513+
514+ <!-- b-form-datepicker-full-width.vue -->
515+ ```
516+
484517## Internationalization
485518
486519Internationalization of the date picker's calendar is provided via
You can’t perform that action at this time.
0 commit comments