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.

[Table] Remove requirement for a header or data row template

See original GitHub issue

It’s valid that tables may not want any header, or a table could only be a header. Support this use case by letting users avoid defining a cdk-header-row or cdk-row which means that they should not be inserted.

Motivation: A table footer row could be a single row composed of a single row without a header. If placed after a preceding table, it acts as a sticky footer. Works well for cases where the header should not affect the rows, e.g. a totals row

Note that this doesn’t help in cases where a scrollbar appears on one container but not the other. This will cause misalignment on browsers that push content left to show a scrollbar rather than overlay it (e.g. safari)

Issue Analytics

  • State:open
  • Created 6 years ago
  • Reactions:26
  • Comments:10 (2 by maintainers)

github_iconTop GitHub Comments

24reactions
zdzarskycommented, Apr 17, 2019

I want to have a key-value table with no header.

10reactions
Lakstoncommented, Nov 6, 2017

I personally went the display route like this

<mat-header-row 
    *cdkHeaderRowDef="['col1', 'col2']"
    style="display: none;">
</mat-header-row>

and it works fine on all browsers, I use the paginator so I didn’t encounter any problems regarding the scroll bar since well, I don’t have one.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Turn Excel table headers on or off
Show or hide the Header Row · Click anywhere in the table. · Go to Table Tools > Design on the Ribbon. ·...
Read more >
Excel table styles and formatting: how to apply, change ...
The tutorial explains how you can quickly apply or change table styles and remove table formatting keeping all features of an Excel table....
Read more >
Tables in HTML documents
Table rows : The TR element; Table cells: The TH and TD elements ... Associating header information with data cells; Categorizing cells; Algorithm...
Read more >
Disable header rows in Word add-in Table
You can then remove the row manually but if you edit the table again (for any reason) you should specify that you don't...
Read more >
How to remove data frame header and make it a row
Now tables is a list of dataframes, where each data frame is a table fromt eh pdf file. However the table rows are...
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