vue-responsive-calendar
v1.1.9
Published
A responsive calendar component for Vue.js
Downloads
128
Maintainers
Readme
A responsive calendar component for Vue.js
A responsive calendar component for Vue.js
Install
npm install --save vue-responsive-calendar
It's also available on unpkg: https://unpkg.com/vue-responsive-calendar
Usage
<html>
<head>
<!-- Vue -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/vue/2.4.2/vue.min.js"></script>
<script src="https://unpkg.com/[email protected]/dist/vue-responsive-calendar.browser.js"></script>
<link rel="stylesheet" type="text/css" href="https://unpkg.com/[email protected]/dist/vue-responsive-calendar.css">
</head>
<body>
<div id="app">
<responsive-calendar force-monday-first="true" max-size="l" :events="events"></responsive-calendar>
</div>
<script>
var today = new Date();
const app = new Vue({
el: '#app',
data: {
events: [{
dateStart: new Date(today.getTime() + (21.5 * 60 * 60 * 1000)),
dateEnd: new Date(today.getTime() + (22.5 * 60 * 60 * 1000)),
styleClass: 'optional css class',
summary: 'Here a summary',
description: 'The description',
location: 'Location'
}
]
}
});
</script>
</body>
</html>
Development
# install dependencies
npm install
# build for production with minification
npm run build
# develop
npm run devserver