[vue3] calendar selected

0 Answers 56 Views
Calendar
kang
Top achievements
Rank 1
kang asked on 01 Aug 2024, 12:50 PM

 

Hi, I am using vue3.

I want to make a choice, not a focus.

Is there a way?

:value allows you to select a date, but no other date.

There are so many types of events that it's hard to find..

Is there a way?

 

const onCalendarClick = event => {
  console.log(event) //event.target.value X //event.value X
}

 

<Calendar         v-model="modelDate"
                  mode="range"

                  :views="2"

                  :focusedDate="today"

                  :allowReverse="true"                >

Filip
Telerik team
commented on 06 Aug 2024, 12:10 PM

Hi, kang,

Can you please elaborate more on the scenario that you are facing and what the targetted functionality is? The value prop enables the selection of whichever date is clicked on the UI of the Calendar, here is an example with the onChange event in action:

https://stackblitz.com/edit/mvjqkh-xantdx?file=src%2Fmain.vue

You can find the clicked date logged in the console on every date selection. Please let me know the details of the required functionality and I will gladly assist in finding the correct event for it and assist further in the implementation.

Regards,
Filip

 

No answers yet. Maybe you can help?

Tags
Calendar
Asked by
kang
Top achievements
Rank 1
Share this question
or