I’m trying to achieve a simple "month-picker" in Vuetify 3. I went through the documentation and the component’s API, but I can’t seem to find a way to use it.
There is a type
property on component, but it doesn’t seem to do anything.
<template>
<v-app>
<v-container>
<v-date-input type="month" label="Date input"></v-date-input>
</v-container>
</v-app>
</template>
But the output still contains days.
Whats is weird to me, is that this functionality already existed in Vuetify 2 – https://v2.vuetifyjs.com/en/components/date-pickers-month/.
Am I doing something wrong or is this just a bug?
2
Answers
I've ended up with something like this.
This looks like it is working.
Using
view-mode="months"
and@update:month
fixed the issue.