datatable icon indicating copy to clipboard operation
datatable copied to clipboard

[Feature request] Nested headers

Open jledentu opened this issue 7 years ago • 2 comments

Hi,

Thank you for your amazing project, this library looks very promising.

It would be so nice if we could create nested headers, i.e. several levels of headers with headers on top of children headers. See this example in Handsontable.

We could define these nested columns like this, for instance:

columns: [
    {
        name: 'Framework infos',
        nestedColumns: [
            { name: 'Framework name' },
            { name: 'GitHub Stars' },
            { name: 'Forks' }
        ]
    },
    {
        name: 'Actions',
        nestedColumns: [
            { name: 'Project Link', format: value => `<a class="text-primary" href="${value}">${value}</a>` },
            { name: 'Fork', format: value => `<a class="text-primary" href="${value}">${value}</a>` }
        ]
    }
]

Are contributions welcome? I may submit a PR if you think this is an interesting feature.

jledentu avatar Oct 09 '18 08:10 jledentu

That's what I'm looking for!

anklav24 avatar Apr 15 '22 05:04 anklav24