[Table] Posibility to have more rows for item with second row colspan
See original GitHub issueFeature request
What is the expected behavior?
declare two rows for one item in dataSource
What is the use-case or motivation for changing an existing behavior?
Table with items with second row for labels.
First column | Second column |
---|---|
Item 1 - One | Item 1 - Two |
Item 1 - Two cols | |
Item 2 - One | Item 2 - Two |
Item 2 - Two cols |
Is there anything else we should know?
Is this posible with the current implementation in cdk-table
or mat-table
Issue Analytics
- State:
- Created 6 years ago
- Reactions:16
- Comments:11 (5 by maintainers)
Top Results From Across the Web
Table Rowspan And Colspan In HTML Explained (With ...
Allows a single table cell to span the height of more than one cell or row. Why use colspan= or rowspan= ? Sometimes...
Read more >Material table: create extra row with max colspan
I have a table (a non material one) for which I create after each row an extra one with a progress bar like...
Read more >Tables in HTML documents
The HTML table model allows authors to arrange data -- text, preformatted text, images, links, forms, form fields, other tables, etc. -- into...
Read more ><tr>: The Table Row element - HTML - MDN Web Docs - Mozilla
Having the first row's "Name", "ID", and "Balance" heading cells span two rows using the rowspan attribute, making them each be two rows...
Read more >HTML | rowspan Attribute - GeeksforGeeks
That is if a row spans two rows, it means it will take up the space of two rows in that table. It...
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
Though not yet documented, this is possible with the
when
predicate on the row.https://stackblitz.com/edit/material2-rc0-6drmzf?file=app%2Fapp.component.html
How can I have multiple rows based on an array in an element? For example, I have a records with structure like:
So I’d like to create 3 rows per that record:
I understand that
multiTemplateDataRows
lets me have multiple row definitions, but I need dynamic number of these row definitions. I need to put*matRowDef
into a*ngFor
loop somehow.How can I achieve that?