Skip to content

Commit

Permalink
new calendar views
Browse files Browse the repository at this point in the history
  • Loading branch information
pizzapanther committed Dec 8, 2023
1 parent abcea4f commit 8ce3446
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 4 deletions.
25 changes: 22 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
"@fullcalendar/daygrid": "^6.1.9",
"@fullcalendar/icalendar": "^6.1.9",
"@fullcalendar/list": "^6.1.9",
"@fullcalendar/moment": "^6.1.10",
"ical.js": "^1.5.0",
"parcel": "^2.9.3"
},
Expand Down
5 changes: 4 additions & 1 deletion src/cal.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import { Calendar } from '@fullcalendar/core';
import iCalendarPlugin from '@fullcalendar/icalendar';
import dayGridPlugin from '@fullcalendar/daygrid';
import listPlugin from '@fullcalendar/list';
import momentPlugin from '@fullcalendar/moment';

function load_calendar(view) {
var header = {left: '', right: ''};
Expand All @@ -17,7 +18,8 @@ function load_calendar(view) {
plugins: [
iCalendarPlugin,
dayGridPlugin,
listPlugin
listPlugin,
momentPlugin
],
initialView: view,
events: {
Expand All @@ -27,6 +29,7 @@ function load_calendar(view) {
contentHeight: 'auto',
height: 'auto',
headerToolbar: header,
listDayFormat: 'ddd, MMM Do',
visibleRange: function(currentDate) {
var startDate = new Date(currentDate.valueOf());
var endDate = new Date(currentDate.valueOf());
Expand Down

0 comments on commit 8ce3446

Please sign in to comment.