question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Table: Enable row selection event

See original GitHub issue

This 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:closed
  • Created 4 years ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
CristianDDiascommented, Dec 5, 2019

Thank you for the help @fifoosid!

0reactions
fifoosidcommented, Dec 5, 2019

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

Read more comments on GitHub >

github_iconTop Results From Across the Web

Row Selection | TanStack Table Docs
Enables /disables automatic sub-row selection when a parent row is selected, or a function that enables/disables automatic sub-row selection for each row. (Use ......
Read more >
Enabling Row Selection and User Actions - Apple Developer
Enabling Row Selection and User Actions. Displaying a list of data in a table view is of little use if the user can't...
Read more >
Table - how to enable row select - SAP Community
Hi, I want to enable single row select for table control, using xmlview, but don't know how... there are 2 properties : selectionMode...
Read more >
Row Selection - JavaScript Data Grid
Configure row selection with the following properties: rowSelection : Type of row selection, set to either 'single' or 'multiple' to enable selection. 'single' ......
Read more >
ADF table row selection returns first row for every selection event
Page renders -> table renders -> grab current table selection -> enable/disable btn based on selection. User selects another row -> partial trigger...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found