Skip to content

Commit

Permalink
Merge pull request #177 from KhairulAzmi21/feature/fullcalendar-event…
Browse files Browse the repository at this point in the history
…-listener

add fullcalendar eventListener
  • Loading branch information
saade authored May 2, 2024
2 parents e879f5e + 561870b commit d40410e
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 d40410e

Please sign in to comment.