Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

271
Visualizações
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 Respostas
Responde à pergunta

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 Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda