onchange
Description
Fires when closing the Month view after date selectionUsage
onchange?: (ev: Date) => void;
Parameters
It takes one parameter:
ev: Date
– a Date object representing the selected day.
Example
<script>
function handleChange(ev) {
console.log("Selected date:", ev);
}
</script>
<Month onchange={handleChange} />