json_table icon indicating copy to clipboard operation
json_table copied to clipboard

Add ability to create actions by double click or add a button column.

Open fringefilmsoz opened this issue 5 years ago • 7 comments

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.

  1. Ability to add a button to create actions from rows. or
  2. 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.

fringefilmsoz avatar Apr 04 '20 11:04 fringefilmsoz

done

apgapg avatar Apr 13 '20 04:04 apgapg

Use onRowSelect

apgapg avatar Apr 13 '20 04:04 apgapg

@apgapg can we also add hold row to select? or is there a work around for it?

sumitbhanushali avatar Jul 04 '21 14:07 sumitbhanushali

@sumitbhanushali I cannot understand the case. Can you explain me more briefly?

apgapg avatar Jul 04 '21 14:07 apgapg

I want to open a new window on row select and select one or multiple rows on long press

sumitbhanushali avatar Jul 04 '21 14:07 sumitbhanushali

@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

apgapg avatar Jul 04 '21 15:07 apgapg

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]

sumitbhanushali avatar Jul 05 '21 05:07 sumitbhanushali