gregnb / gregnb/mui-datatables

renderExpandableRow example

Open
#1,220 3 comments 0 reactions 0 assignees View on GitHub
question
Dominant language
JavaScript
Stars
2.7k
Forks
906
PR merge metrics
No merged PRs in 30d

Description

Is there an example for expandable rows somewhere? I don't see anything in the README or on [the demo site](https://www.material-ui-datatables.com/), and I can't tell from the README what kind of array `rowsExpanded` should be either.

I've set `options.renderExpandableRow` to `(rowData, rowMeta) => ` (using [this package](https://github.com/capaj/react-tweet-embed)), and I get this error:

Warning: validateDOMNesting(...):

cannot appear as a child of .

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with the README and demo site, then trace the options.renderExpandableRow and rowsExpanded documentation or examples. Reproduce the TweetEmbed case and inspect the reported tbody DOM-nesting warning; done means an example explains the expected rowsExpanded array and expandable-row rendering no longer leaves the documented behavior unclear.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, react
Domain
documentation, frontend
Issue type
Documentation
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.