json_table
json_table copied to clipboard
Add ability to create actions by double click or add a button column.
This is a great product. But, It doesn't seem possible to use the table for a user to take an action based on a row selection. Requested functionality.
- Ability to add a button to create actions from rows. or
- Ability to double click. Either 1 or 2, there is a need to define what the "index" for a row is to perform an action.
done
Use onRowSelect
@apgapg can we also add hold row to select? or is there a work around for it?
@sumitbhanushali I cannot understand the case. Can you explain me more briefly?
I want to open a new window on row select and select one or multiple rows on long press
@sumitbhanushali For the first part the functionality is already there to receive click event.
For second technically its multi row selection functionality. Here we would get onRowSelected(rows) callback which would list all rows selected.
That will be a good addition.
See more here: https://xaksis.github.io/vue-good-table/guide/configuration/table-events.html#on-selected-rows-change
understood, I think this still limits the use cases and is making developer fight with the library. I think it would be best if we have something like onRowBuilder which provides the index of row and then user can play with it however he wants.
alternatively, tableCellBuilder can also give index of [row,column]