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.

Support for nested column headers

See original GitHub issue

I’m submitting a … (check one with “x”)

[ ] bug report => search github for a similar issue or PR before submitting
[x] feature request
[ ] support request => Please do not submit support request here

Are any plans to support multiple tier headers/headers spanning multiple rows or columns similar to these?: https://www.w3.org/WAI/tutorials/tables/irregular/

This might be the only feature that prevents this module from having everything I might ever need in a datatable.

Maybe there already is a way of doing that using the templates, but I’ve been trying around and have had no luck.

(also pinning top headers could also be interesting)

I’m assuming the ability to do that would actually have to be implemented in the library itself, right?

Thanks.

Issue Analytics

  • State:open
  • Created 7 years ago
  • Reactions:18
  • Comments:16 (2 by maintainers)

github_iconTop GitHub Comments

18reactions
stckcrshcommented, Oct 18, 2017

I would love to see this feature

3reactions
uzairwaynecommented, Sep 3, 2019

Although nested column headers is’nt supported yet, i’ve found a workaround by leveraging ngx-datatable-header-template and ngx-datatable-cell-template and html’s <table> elements.

<ngx-datatable-column prop="prop" headerClass="my-custom-header-class" [cellClass]="'my-custom-cell-class'" [flexGrow]="4" [resizeable]="false" [draggable]="false">
                <ng-template let-column="column" ngx-datatable-header-template>
                    <table>
                        <thead>
                            <tr>
                                <th colspan="4">Parent Heading</th>
                            </tr>
                            <tr>
                                <th>Child Heading 1</th>
                                <th>Child Heading 2</th>
                                <th>Child Heading 3</th>
                                <th>Child Heading 4</th>
                            </tr>
                        </thead>
                    </table>
                </ng-template>
                <ng-template let-row="row" ngx-datatable-cell-template>
                        <table>
                            <tbody>
                                <tr>
                                    <td>child1data</td>
                                    <td>child2data</td>
                                    <td>child3data</td>
                                    <td>child4data</td>
                                </tr>
                            </tbody>
                        </table>
                </ng-template>
</ngx-datatable-column>
Read more comments on GitHub >

github_iconTop Results From Across the Web

Tutorial: Nested headers - Handsontable
The Nested Rows plugin allows creating a nested header structure, using the colspan attribute. Note: the plugin supports a nested structure, which means...
Read more >
Nested headers and column header updates - Bossanova
Enabled nested headers in your spreadsheet and learn how to set or get header values.
Read more >
Example: Nested Column Headers - Energiladan
Use nested columns to visually group related column headers. The children attribute associates a parent column to its descendants. Note that only bottom-level ......
Read more >
Nested column headers | DevExpress Support
Hello, My WinForm gridcontrol has sets of related columns that repeat for different time frames. I need to show two levels of column...
Read more >
Solved: Unpivoting nested column headers
... but don't understand how to deal with the nested column headers (Branch being on top of month). ... Many thanks for any...
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