|
<template>
<div class="hello">
<b-button id="modal-btn" @click="modalShow = !modalShow">Show Schedule</b-button>
<b-modal v-model="modalShow" size="xl">
<ejs-schedule id="Schedule" ref="scheduleObj" :created="onCreated"></ejs-schedule>
</b-modal>
</div>
</template>
<script>
import Vue from "vue";
import { SchedulePlugin, Day, Week, WorkWeek, Month, Agenda, Resize, DragAndDrop } from "@syncfusion/ej2-vue-schedule";
Vue.use(SchedulePlugin);
export default {
name: "HelloWorld",
methods: {
onCreated: function (args) {
if (this.$refs.scheduleObj) {
var dlg = document.querySelector(".e-schedule-dialog").ej2_instances[0];
var modalBody = document.querySelector(".modal-body");
// Changing the Scheudle editor target
dlg.target = modalBody;
}
},
},
};
</script> |