|
<template>
<ejs-schedule ref="ScheduleObj" width='100%' :selectedDate='selectedDate' :eventSettings='eventSettings' height='540px'>
<e-views>
<e-view option='Week'></e-view>
<e-view option='WorkWeek'></e-view>
<e-view option='Month'></e-view>
</e-views>
</ejs-schedule>
</template>
<script>
import Vue from 'vue';
import {
scheduleData
} from './datasource.js';
import {
extend
} from '@syncfusion/ej2-base';
import {
SchedulePlugin,
WorkWeek,
Month,
Week,
DragAndDrop,
Resize
} from '@syncfusion/ej2-vue-schedule';
Vue.use(SchedulePlugin);
export default {
data() {
return {
eventSettings: {
dataSource: extend([], scheduleData, null, true),
},
selectedDate: new Date(2018, 1, 15)
}
},
methods: {},
provide: {
schedule: [WorkWeek, Month, Week, DragAndDrop, Resize]
}
}
</script> |