Closed DeBelserArne closed 4 years ago
refer to https://github.com/njleonzhang/vue-data-tables/issues/148, you can leverage refs.
Alright thanks, using double $refs did the trick.
First the one of my vue-datatables, then of the el-table, thanks for pointing me in the right direction!
For feature request, provide the following section
Motivation / Use Case
Now it's kinda hard to click on the small chevron to expand the row, it would be cool if we could make the entire row clickable.
Expected Behavior
Expand entire row on click anywhere;
Other Information
I have tried this implementation for
https://stackoverflow.com/questions/52033039/how-to-make-a-table-row-clickable-and-expand-the-row-vue-js-element-ui
But it doesn't seem compatible with the datatables.
WORKING EXAMPLE WITH el-table
https://jsfiddle.net/ahLxqgot/2/
Try to click a row it works. But when I add the code to the datatable it no longer works:
The error: