Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
fringefilmsoz opened this issue Apr 4, 2020 · 7 comments

Comments

@fringefilmsoz
Copy link

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.
@apgapg
Copy link
Owner

apgapg commented Apr 13, 2020

done

@apgapg apgapg closed this as completed Apr 13, 2020
@apgapg
Copy link
Owner

apgapg commented Apr 13, 2020

Use onRowSelect

@sumitbhanushali
Copy link

sumitbhanushali commented Jul 4, 2021

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

@apgapg
Copy link
Owner

apgapg commented Jul 4, 2021

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

@apgapg apgapg reopened this Jul 4, 2021
@sumitbhanushali
Copy link

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

@apgapg
Copy link
Owner

apgapg commented Jul 4, 2021

@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

@sumitbhanushali
Copy link

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]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants