Expand row clicking anywhere
See original GitHub issueDescription
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:
- Created 3 years ago
- Comments:7
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@stephannielsen that’s because click event is prevented in
ExpandIcon
, you can either implement your ownExpandIcon
or simply make itpointer-events: none
(.BaseTable__expand-icon
)Thanks for the quick reply. Chose
pointer-events: none
for now, fits my needs.