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 setup>
import { Month } from "@svar-ui/vue-core";
function handleChange(ev) {
console.log("Selected date:", ev);
}
</script>
<template>
<Month :onchange="handleChange" />
</template>