javascript how to make spans table header?? lib ng2-smart-table

611 Views Asked by At

I use a ng2-smart-table lib.

And I set like this:

settings = {
        hideSubHeader: true,
        pager: { perPage: 26, display: false },
        actions: false, 
        columns: {
            NO: {
                title: 'number',
            },
            name: {
                title: 'name',
            },
        },
    };

And I want to create new columns in 'name' header.

enter image description here

1

There are 1 best solutions below

0
On BEST ANSWER

As per official docs, there is no such functionality, you need to manually set the configuration. or go for another smart table may be Primeng's table is best for your use case.

Refer here for Primeng Datatable -

Here you can easily use colspan and rowspan as per your requirements.