+ :dependencies="{'@fullcalendar/core': '^5.7.2', '@fullcalendar/vue3': '^5.7.2', '@fullcalendar/daygrid': '^5.7.2', '@fullcalendar/interaction': '^5.7.2', '@fullcalendar/timegrid': '^5.7.2'}" component="FullCalendar">
+ Note: This documentation explains how to use PrimeVue's FullCalendar component and FullCalendar 4.0.1+.
+ In PrimeVue 5.7.2+, FullCalendar component is deprecated. Now, PrimeVue provides full theming support to the FullCalendar Vue library.
+ In this way, it is aimed to use it compatible with other PrimeVue components.
+
Import
import FullCalendar from 'primevue/fullcalendar';
@@ -128,11 +132,14 @@ export default {
plugins:[dayGridPlugin, timeGridPlugin, interactionPlugin],
initialDate: '2019-01-01',
headerToolbar: {
- left: 'prev,next',
+ left: 'prev,next today',
center: 'title',
right: 'dayGridMonth,timeGridWeek,timeGridDay'
},
- editable: true
+ editable: true,
+ selectable:true,
+ selectMirror: true,
+ dayMaxEvents: true
},
events: null
};
@@ -158,7 +165,7 @@ export default {
plugins:[dayGridPlugin, timeGridPlugin, interactionPlugin],
initialDate: '2019-01-01',
headerToolbar: {
- left: 'prev,next',
+ left: 'prev,next today',
center: 'title',
right: 'dayGridMonth,timeGridWeek,timeGridDay'
},
@@ -234,11 +241,14 @@ export default {
plugins:[dayGridPlugin, timeGridPlugin, interactionPlugin],
initialDate : '2017-02-01',
headerToolbar: {
- left: 'prev,next',
+ left: 'prev,next today',
center: 'title',
right: 'dayGridMonth,timeGridWeek,timeGridDay'
},
- editable: true
+ editable: true,
+ selectable:true,
+ selectMirror: true,
+ dayMaxEvents: true
},
events: null
};
@@ -289,11 +299,14 @@ export default {
plugins:[dayGridPlugin, timeGridPlugin, interactionPlugin],
initialDate : '2017-02-01',
headerToolbar: {
- left: 'prev,next',
+ left: 'prev,next today',
center: 'title',
right: 'dayGridMonth,timeGridWeek,timeGridDay'
},
- editable: true
+ editable: true,
+ selectable:true,
+ selectMirror: true,
+ dayMaxEvents: true
});
const events = ref(null);
const eventService = ref(new EventService());