Skip to content

Commit

Permalink
Add week and day view types
Browse files Browse the repository at this point in the history
  • Loading branch information
czemu committed Mar 13, 2021
1 parent 0751b9b commit c4474bc
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dist/js/tool.js

Large diffs are not rendered by default.

8 changes: 7 additions & 1 deletion resources/js/components/Tool.vue
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
<script>
import FullCalendar from '@fullcalendar/vue';
import dayGridPlugin from '@fullcalendar/daygrid';
import timeGridPlugin from '@fullcalendar/timegrid';
import interactionPlugin from '@fullcalendar/interaction';
import allLocales from '@fullcalendar/core/locales-all';
import EventModal from './EventModal';
Expand All @@ -34,11 +35,16 @@
return {
calendarOptions: {
events: '/nova-vendor/nova-calendar-tool/events',
plugins: [ dayGridPlugin, interactionPlugin ],
plugins: [ dayGridPlugin, timeGridPlugin, interactionPlugin ],
initialView: 'dayGridMonth',
locale: Nova.config.fullcalendar_locale || 'en',
dateClick: this.handleDateClick,
eventClick: this.handleEventClick,
headerToolbar: {
left: 'prev,next today',
center: 'title',
right: 'dayGridMonth,timeGridWeek,timeGridDay'
},
eventTimeFormat: {
hour: '2-digit',
minute: '2-digit',
Expand Down

0 comments on commit c4474bc

Please sign in to comment.