5 | Drag calendar to right or left to get new dates. You can also enable mousewheel scroll by adding
6 | enable-mousewheel-scroll
property.
7 |
11 | You can simply select the date. Selected date: {{ date }} 12 |
13 |
14 |
15 | <vue-inline-calendar @update:select-date="date = $event" />
17 |
18 | 23 | You can set the initial date. Selected date: {{ dateInitial }} 24 |
25 |
26 |
27 | <vue-inline-calendar:selected-date="dateInitial" @update:select-date="dateInitial = $event" />
30 |
31 | The component with enable-mousewheel-scroll
property.
37 |
38 | <vue-inline-calendar @select-date="setDate" enable-mousewheel-scroll />
40 |
41 | You can specify the minimal date and thereby exclude older dates from selection:
46 |
47 |
48 | <vue-inline-calendar :spec-min-date="new Date()" />
50 |
51 | You can also specify the maximal date and thereby exclude newer dates from selection:
56 |
57 |
58 | <vue-inline-calendar :spec-max-date="new Date()" />
60 |
61 | You can exclude weekends from selection:
66 |
67 |
68 | <vue-inline-calendar disable-weekends />
69 |
70 | You can select the range of dates (the start and end date selection will be emitted).
75 |76 | Start date: {{ datesRange.startDate }} 77 |
78 |79 | End date: {{ datesRange.endDate }} 80 |
81 |
82 |
83 | <vue-inline-calendar is-range @update:selected-range="setDatesRange" />
86 |
87 | You can set initial range of dates:
92 |93 | Start date: {{ datesRangeInitial.startDate }} 94 |
95 |96 | End date: {{ datesRangeInitial.endDate }} 97 |
98 |
99 |
100 | <vue-inline-calendar is-range :selected-range="datesRangeInitial" @update:selected-range="setInitialDatesRange" />
104 |
105 | You can combine the different properties to get the desired result:
110 |
111 |
112 | <vue-inline-calendar :spec-min-date="new Date()" is-range disable-weekends :show-year="false" />
115 |
116 | 120 | Read the 121 | docs 128 | to know more about the package usage 129 |
130 | 131 | 132 | 158 | 159 | 205 | -------------------------------------------------------------------------------- /src/assets/base.css: -------------------------------------------------------------------------------- 1 | /* color palette from{{ date.year }}
31 | 32 |{{ date.month }}
33 | 34 |{{ date.weekday }}
37 |