Vue
by Sascha
HTML
<link rel="stylesheet" href="https://unpkg.com/v-calendar/lib/v-calendar.min.css">
<script src="https://unpkg.com/v-calendar"></script>
<div id='app'>
<input type="text" v-model="testValue" id="test" /><br /><br />
<v-calendar mode='range'
is-double-paned is-linked is-expanded
v-model='testValue'
:min-date='new Date(2018, 6, 1)'
:max-date='new Date(2018, 8, 31)'
:disabled-dates='{ weekdays: [1, 7] }'
></v-calendar><br />
<v-date-picker :mode='mode' v-model='testValue'></v-date-picker>
</div>
CSS
body {
background: #20262E;
padding: 20px;
font-family: Helvetica;
}
#app {
background: #fff;
border-radius: 4px;
padding: 20px;
transition: all 0.2s;
}
li {
margin: 8px 0;
}
h2 {
font-weight: bold;
margin-bottom: 15px;
}
del {
color: rgba(0, 0, 0, 0.3);
}
Vue
new Vue({
el: '#app',
data: {
testValue: new Date(),
// Data used by the date picker
mode: 'single',
selectedDate: null,
}
})