Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

275
Vistas
V-data-table expand get value on arrow click

I'm using a v-data-table with expandable rows. I would like to get the value of a row when the expand arrow is clicked. I know I can use @click:row to get the value when the row is clicked, but specifically clicking on the arrow does not have the same effect. How do I get this value when directly clicking on the expand arrow?

v-data-table below which is fairly basic. I would like to call a method on expansion arrow click that takes the item/object from that row.

<v-data-table
    :expanded.sync="expanded"
    :headers="tableHeaders"
    :items="myData"
    :single-expand="true"
    show-expand
 >
{ text: "", value: "data-table-expand" }
about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

There is a slot item:data-table-expand. You can put your own icon or button in the slot and add a click handler to it.

https://vuetifyjs.com/en/api/v-data-table/

about 4 years ago · Juan Pablo Isaza Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda