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.

Expand row clicking anywhere

See original GitHub issue

Description

Currently, the table only supports being expanded when you click the expand icon column. There should still be an expandColumnKey prop. However, we might want to investigate looking into a new expandRow prop.

Ideal Solution

The ideal implementation will have a simple expandRow prop that is a boolean. The following is an example implementation.

<BaseTable
  expandColumnKey={"id"}
  expandRow={true}
/>

By enabling expandRow. Now, when you click anywhere, the row expands.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:7

github_iconTop GitHub Comments

1reaction
nihgwucommented, Jul 19, 2021

@stephannielsen that’s because click event is prevented in ExpandIcon, you can either implement your own ExpandIcon or simply make it pointer-events: none (.BaseTable__expand-icon)

0reactions
stephannielsencommented, Jul 20, 2021

Thanks for the quick reply. Chose pointer-events: none for now, fits my needs.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Expand Master-Detail Grid Row by Clicking Anywhere on Row ...
I've been trying to find a way to expand a row in a master-detail grid by clicking on the row instead of just...
Read more >
Expand and collapse row on button click which is in a td in mat ...
I am looking for expanding and collapsing the row (one at a time) on button toggle. content in ts file: import { Component,...
Read more >
Expand row onRowClick · Issue #516 · gregnb/mui-datatables
I managed to make it work. I downloaded locally this repository: https://github.com/georgezee/mui-datatables/tree/expandable-rows-click-anywhere.
Read more >
How to expand a row on single click (on the row) | Vue Forums
Solution: In TreeGrid, We can expand/collapse the selected row by using “expandCollapseRow” method. We have prepared the work around and in “ ...
Read more >
Responsive mode - "click" event and data expand conflict
Clicking the pseudo element opens or closes the child row and skips the processing of the click handler. Clicking anywhere else in the...
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