change
Description
fires when a new date is selected in a calendarParameters
- ev - (object) a CustomEvent object
Example
<script>
function handleChange(ev){
const newValue = ev.detail.value;
console.log(newValue);
// =>{value: Thu Apr 20 2023 00:00:00 GMT+0300}
}
</script>
<Calendar value={new Date(2022, 2, 18)} on:change={handleChange}/>
Details
The handler function returns an object with the newly selected value of the calendar.
Related article: Catching the change of the selected date