Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

270
Views
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 answers
Answer question

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 Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!