I am trying to create an expandable app bar in Vuetify, which shows a datepicker within the app bar when the app bar is expanded.
When the app bar is expanded, the datepicker is shown as an overlay instead of expanding the app bar. How do I make the app bar expand to contain the datepicker instead of showing the datepicker on top of the app bar.
I have created a codepen as an example: https://codepen.io/thomasabcd/pen/eYmOoVQ
<div id="app">
<v-app id="inspire">
<div>
<v-app-bar dark>
<v-toolbar-title>Page title</v-toolbar-title>
<v-spacer></v-spacer>
<v-btn icon @click="extended=!extended">
<v-icon>mdi-calendar</v-icon>
</v-btn>
<template v-slot:extension v-if="extended">
<v-date-picker full-width />
</template>
</v-app-bar>
</div>
</v-app>
</div>
new Vue({
el: '#app',
vuetify: new Vuetify(),
data(){
return{
extended: false
}
}
})
v-content
for dynamically sizing. vuetifyjs.com/en/components/… – Ankit Kantev-content
– Ankit Kante