Skip to content

Commit

Permalink
add fullcalendar eventListener
Browse files Browse the repository at this point in the history
  • Loading branch information
KhairulAzmi21 committed Apr 17, 2024
1 parent c4e1cbc commit 561870b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions resources/js/filament-fullcalendar.js
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,12 @@ export default function fullcalendar({

calendar.render()


window.addEventListener('filament-fullcalendar--refresh', () => calendar.refetchEvents())
window.addEventListener('filament-fullcalendar--prev', () => calendar.prev())
window.addEventListener('filament-fullcalendar--next', () => calendar.next())
window.addEventListener('filament-fullcalendar--today', () => calendar.today())
window.addEventListener('filament-fullcalendar--goto', (event) => calendar.gotoDate(event.detail.date))
},
}
}
Expand Down

0 comments on commit 561870b

Please sign in to comment.