V-calendar: How to: DatePicker Move Method

Created on 7 Apr 2020  路  4Comments  路  Source: nathanreyes/v-calendar

Is it possible to use the Calendar .move method on the DatePicker? Can't find any documentation or issues related.

Most helpful comment

Yes you'll need to access the calendar ref inside it though.

<v-date-picker v-model="date" ref="picker" />
/// Somewhere in your methods, move to the next month
this.$refs.picker.$refs.calendar.move(1)

I'll probably add some transparent wrapper calls to remove the extra layer calls.

All 4 comments

Yes you'll need to access the calendar ref inside it though.

<v-date-picker v-model="date" ref="picker" />
/// Somewhere in your methods, move to the next month
this.$refs.picker.$refs.calendar.move(1)

I'll probably add some transparent wrapper calls to remove the extra layer calls.

@nathanreyes - This works. Thank you!

@nathanreyes what about the focusDate method?

You can access it the same way.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

hanhtv204 picture hanhtv204  路  4Comments

Maadtin picture Maadtin  路  3Comments

octaviangrozman picture octaviangrozman  路  4Comments

sokolovdm picture sokolovdm  路  3Comments

eafomi4ev picture eafomi4ev  路  3Comments