Skip to content

Commit

Permalink
Make event draggable
Browse files Browse the repository at this point in the history
  • Loading branch information
Infinity-chakra committed May 8, 2024
1 parent 67c5db2 commit 262b48b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions src/services/calendarOptionService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,13 @@ export const calendarOptions: F.CalendarOptions = {
weekNumbers: true,
weekText: 'W- ',
selectable: true,
dayMaxEvents: true,
editable: true,
// eventStartEditable: true,

eventRemove(arg) {
console.log('remove---', arg)
},
headerToolbar: {
start:
'dayGridYear,dayGridMonth,timeGridWeek,timeGridDay,timeGridFive listWeek,listMonth',
Expand Down
2 changes: 1 addition & 1 deletion src/services/functions/calendarManipulator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import type { FullCalendar as F } from '@/interfaces'
import { useCalendarStore } from '@/stores/calendar'

export const handleDateClick = (arg: F.DateClickArg) => {
console.log('Date click! ' + arg.dateStr)
console.log('Date click! ', arg)
}

export const handleSelect = (selectionInfo: any) => {
Expand Down

0 comments on commit 262b48b

Please sign in to comment.