Update qualifying, calendar and error page

This commit is contained in:
schooltechx 2023-04-04 20:40:56 +07:00
parent 24167f0650
commit 3a44bc2b33
5 changed files with 41 additions and 32 deletions

View file

@ -1,7 +1,7 @@
<script lang="ts">
import FullCalendar from '$lib/components/FullCalendar.svelte';
import daygridPlugin from '@fullcalendar/daygrid';
import type { EventClickArg } from '@fullcalendar/core';
// import type { EventClickArg } from '@fullcalendar/core';
import type {CalendarEvent} from './CalendarEvent'
let calendarRef;
export let events:CalendarEvent[]
@ -22,12 +22,9 @@
today: 'วันนี้'
},
events,
dateClick: clickDate,
eventClick: clickEvent,
// eventClick: clickEvent,
};
function clickDate(info: { dateStr: string; }){
alert('a day has been clicked!'+info.dateStr);
}
/*
function clickEvent(info:EventClickArg){
alert(
'Event: ' + info.event.title +
@ -36,6 +33,7 @@
'\nView: ' + info.view.type
);
}
*/
</script>
<FullCalendar bind:this={calendarRef} {options} />