-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
DataTable: Clicking the center mouse button on a row should open the row item in a new tab #5051
Comments
Reproducer showing the issue: https://stackblitz.com/edit/react-uhtkkm?file=src%2FApp.js |
@tonoy30 @melloware - What about using |
@paustint I also need the data of the clicked row on the event handler. |
|
In order for users to be able to simulate row clicks as html links the center mouse button needs to be able to be listed for along with the row that was clicked resolves primefaces#5051
In order for users to be able to simulate row clicks as html links the center mouse button needs to be able to be listed for along with the row that was clicked resolves #5051
Describe the feature you would like to see added
I would like to see a feature where, upon clicking the center mouse button on a specific row item within a data table, that item opens in a new tab. Essentially, I aim to replicate the behavior of a hyperlink when the mouse's center button is clicked.
Is your feature request related to a problem?
I'm not able to capture the center mouse button click on
onRowClick
event handlerDescribe the solution you'd like
Capturing the center mouse button click (often referred to as the middle mouse button click) in a standard
onRowClick
event handler is challenging because it's not a standard event that all browsers and systems support and it's not being captured by theonRowClick
event handler. The middle mouse button is often used for various system functions, and it might not be consistently recognized as a standard click event in web applications.So, I would like to see an additional props for
auxclick
event which is designed to capture clicks from auxiliary input devices like the middle mouse button.Describe alternatives you have considered
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: