0👍
EDIT: it looks like you’re using vuejs-datatable actually. Still, there is only a presence of raw data and nothing like a callback there, so it should probably not be possible to do it there. Try to rather do it directly into your template somehow since nothing in the official documentation is talking about this.
Or maybe look another library that will allow you to do that. There are plenty and what you’re trying to do may be easier with another package. The one you’re currently using (vuejs-datatable
) do only have 147 stars, so not the most popular. I’d recommend checking all the solutions available here: https://github.com/vuejs/awesome-vue#table
You can see the attached listeners like this, select the component from your vue devtools then check it’s listeners in the console.
You’re talking about Vuetify’s v-data-table
or another one? Because there is a lot of them around..
Also, from the official #data docs, we can see that it says
A rule of thumb is that data should just be data – it is not recommended to observe objects with their own stateful behavior.
You should not handle any kind of @click
events into data
so far. Are you sure your library is intended to work this way ?