Event Hooks
info
All methods listed below can be used multiple times.
onOpen()
#
Subscribes the provided callback to an event that gets triggered each time the calendar shows up.
onClose()
#
Subscribes the provided callback to an event that gets triggered when the calendar is closed.
onCancel()
#
Subscribes the provided callback to an event that gets triggered when the calendar is closed by clicking the cancel button.
onClear()
#
Subscribes the provided callback to the calendar's clear
event.
onSelect()
#
Subscribes the provided callback to an event that gets triggered when the calendar's OK button is clicked.
#
callback propsProp | Type | Required |
---|---|---|
date | Object | No |
formatedDate | String | No |
onMonthChange()
#
Subscribes the provided callback to an event that gets triggered when the month is changed.
onYearChange()
#
Subscribes the provided callback to an event that gets triggered when the year is changed.