-
Notifications
You must be signed in to change notification settings - Fork 1
/
App.vue
50 lines (49 loc) · 1020 Bytes
/
App.vue
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
<template>
<DxScheduler id="scheduler"
:data-source="appointments"
text-expr="title"
all-day-expr="dayLong"
recurrence-rule-expr="recurrence"
:current-date.sync="currentDate"
current-view="week"
time-zone="Europe/Berlin"
:adaptivity-enabled="true">
<DxView
type="day"
:start-day-hour="10"
:end-day-hour="22"
/>
<DxView
type="week"
:start-day-hour="10"
:end-day-hour="22"
/>
<DxView type="month" />
<DxEditing
:allow-editing-time-zones="true"
:allow-dragging="false"
/>
</DxScheduler>
</template>
<script>
import { DxScheduler, DxView, DxEditing } from 'devextreme-vue/scheduler';
import { appointments } from './data.js';
export default {
components: {
DxScheduler,
DxView,
DxEditing
},
data() {
return {
appointments: appointments,
currentDate: new Date(2021, 4, 25),
};
}
}
</script>
<style>
#scheduler {
height: 600px;
}
</style>