react-data-table-component icon indicating copy to clipboard operation
react-data-table-component copied to clipboard

[FEATURE]: Redirection after click, middle click

Open makkmarci13 opened this issue 1 month ago • 0 comments

Is your feature request related to a problem? Please describe

I can't make redirect on click and middle click (so same page and blank page) in the same datatable. Currently I'm using with onRowClicked={(row) => navigate(`target here`)}, but this only redirects in the same page. I want to achieve a same behavior, like NavLinks for the whole rows.

Like when I click with left click, open in same tab. When I click with middle (scroll), open it in a blank tab.

Currently ctrl+click can be detected from the event, but scroll click sadly not.

Describe the solution you'd like

A similar event would be good, or just make a general click event which provide any type of clicks.

Describe alternatives you've considered

Currently I don't have alternative solution.

Additional context

None.

makkmarci13 avatar Nov 08 '25 10:11 makkmarci13