hjalmers / angular-generic-table

A generic table for Angular 2+. Generic table uses standard markup for tables ie. table, tr and td elements etc. and has support for expanding rows, global search, filters, sorting, pagination, export to CSV, column clicks, custom column rendering, custom export values.
https://hjalmers.github.io/angular-generic-table/
MIT License
105 stars 55 forks source link

Support colspan or rowspan? #287

Open MiniMenu opened 5 years ago

MiniMenu commented 5 years ago

Hi, Dose angular-generic-table support cell merging?

hjalmers commented 5 years ago

Hi @MiniMenu, currently regular colspan and rowspan aren’t supported, however it’s possible to mimic the behavior of colspan as the table allows the use of a custom render function (how the values inside the columns are displayed) as well as the use of custom components inside table cells. So I’m not sure support for colspan adds anything. Rowspan on the other hand might be useful but I’m not quite sure how the data structure would work in that case as each row represents an entry (object) in a array. Perhaps you can elaborate a bit what you’re trying to do and what you’d need the table to be able to do?