Table: Enable row selection event
See original GitHub issueThis issue is related to this UI5 Web Components React issue.
Is your feature request related to a problem? Please describe.
We are using the Table
component but we need to select a table row, which is not possible. We tried to use the AnalyticalTable
(UI5 Web Components React) component but it needs a rowHeight
props, which is not possible in our case, because the row height can be different for each table row (dynamic height).
Describe the solution you’d like
An onClick
callback function for the table row, which is fired when the user selects a table row. This callback function receives as a parameter the selected row.
Describe alternatives you’ve considered
Access the shadowRoot
of the Table
web component and add an onClick
event listener for each tr
element and expose this callback function.
Here is a Codesandbox example about what we would expect from the table (without the onclick
feature).
Issue Analytics
- State:
- Created 4 years ago
- Comments:7 (4 by maintainers)
Top GitHub Comments
Thank you for the help @fifoosid!
Hi @CristianDDias ,
It’s my bad actually, I checked the specs and everything looks fine. 😄 Please let us know if you have any further issues.
In the meantime, I will keep this issue open as a feature request for the click event.
Best regards, Filip