Company logo
  • Empleos
  • Bootcamp
  • Acerca de nosotros
  • Para profesionales
    • Inicio
    • Empleos
    • Cursos y retos
    • Preguntas
    • Profesores
    • Bootcamp
  • Para empresas
    • Inicio
    • Nuestro proceso
    • Planes
    • Pruebas
    • Nómina
    • Blog
    • Calculadora

0

85
Vistas
Vuetify transition on toolbar extension template

I'm trying to make a vuetify toolbar that extend on click. (https://vuetifyjs.com/en/components/toolbars/)

Here is a sample of what it looks likes :

 <v-toolbar
    width="100%"
    height="40"
    extension-height="80"
    @click="toggleToolbarExtension"
  >    
  // stuff here...
    <v-expand-transition>
     <template v-if="isToolbarExtended" #extension="{}">
       <v-list dense color="transparent">

So the extended part of this vuetify component is only created in DOM when the data is on true. But what I would like is that the componen "grows" from height 0 to 80 with a transition. So, here are the changes I made :

    <v-toolbar
    width="100%"
    height="40"
    extension-height="isToolBarExtended ? 80 : 0"
    @click="toggleToolbarExtension"
  >
   // stuff here...
    <v-expand-transition>
     <template #extension="{}">
       <v-list v-show="IsToolBarExtended" dense color="transparent">

But it's not working. I've searched on forums but I haven't anyone trying to reproduce the exercice i'm doing. Seems like the template tag can't take any tranisition.

How to make the vuetify toolbar extension grow with smooth transition ?

7 months ago · Juan Pablo Isaza
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar empleo Planes Nuestro proceso Comercial
Legal
Términos y condiciones Política de privacidad
© 2023 PeakU Inc. All Rights Reserved.