ratiw / vuetable-2-tutorial

MIT License
258 stars 67 forks source link

Accessing values from other columns #106

Closed khalwat closed 5 years ago

khalwat commented 5 years ago

First of all, thank you @ratiw -- I love the way you've architected Vuetable-2, and appreciate all of your hard work.

I have a use-case where I'd like to be able to access values from other columns in a given row inside of the callback that I define in the field defs.

I want to be able to link a text field to a URL based on data in another column in the row, but it doesn't appear there's any way to do this via the callback; something like id = row['id'];

I also looked into __component: but that too appears to only pass in the data for the current column.

How might this be accomplished? I'm using Vuetable-2 1.7.x

khalwat commented 5 years ago

Wrong repo