Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

264
Visualizações
Material UI Table. How to line up expandable table with parent table

I'm building a table that is gonna display tabular data in multiple groups. The Table will have a main table header that shows what each table cell is. It will also consist of expandable groups which will hold all the tabular data.

Using Material UI, I've looked at the example at https://v4.mui.com/components/tables/#collapsible-table

What they do, is wrap a Collapse component inside a TableCell component. The problem is that at this point, the code inside Collapse has "lost connection" with the parent table structure, as it actually lives within a single table cell. I've tried multiple things, also tried creating a new table within the Collapsecomponent. This does for obvious reasons not work, as everything is created within said table cell.

How can I go about splitting a table into multiple groups, where each group is expandable/collapsible and consist of tabular data, structured after the main table?

I've created a quick mock at https://codesandbox.io/s/material-demo-forked-s3cqv?file=/demo.tsx You can imagine there would be multiple groups following the group in the mock. As you can see, the data doesn't line up with the main table header.

Is this actually accomplishable with Material UI components?

Thank you for reading.
Best regards
Stephan Bakkelund Valois

about 4 years ago · Juan Pablo Isaza
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda