vue-day-schedule
v0.2.6
Published
View your day's schedule along a horizontal timeline. Built for VueJS.
Downloads
4
Readme
Vue Day Schedule
View your day's schedule along a horizontal timeline. Built for VueJS. View the demo
Install via npm
npm install vue-day-schedule
Setup
First include the CSS file in your main.js (or main.ts if you use Typescript). You could also add this to the file you wish to use the scheduler in.
import 'vue-day-schedule/dist/VueDayScheduler.css';
Then import the component and use it way you would normally use a component.
import vueDaySchedule from 'vue-day-schedule';
<template>
<vue-day-schedule
:events="eventList"
v-on:vs-date-change="handleDateChange"
/>
</template>
<script>
import vueDaySchedule from 'vue-day-schedule';
export default {
components: {
vueDaySchedule
},
data () {
eventList: [
{
name: "Test Event", //Name of the event
date: new Date() //Start time of the event as a JS Date object
}
]
},
methods () {
handleDateChange: function (date) {
alert("Date changed");
}
}
}
</script>
Please feel free to raise issues or feature requests. If feature requests align with the goal of this project we will probably work on adding it in.
Development setup to contribute
npm install
Compiles and hot-reloads for development
npm run serve