Skip to content

arietimmerman/vue-responsive-calendar

Repository files navigation

A responsive calendar component for Vue.js

A responsive calendar component for Vue.js

Demo

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/vue-responsive-calendar@1.1.3/dist/vue-responsive-calendar.browser.js"></script>
<link rel="stylesheet" type="text/css" href="https://unpkg.com/vue-responsive-calendar@1.1.3/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

Releases

No releases published

Packages

No packages published