aurelia-table icon indicating copy to clipboard operation
aurelia-table copied to clipboard

Static headers with aurelia-table?

Open esnyder232 opened this issue 7 years ago • 3 comments

Hey,

We are trying to make a table with static headers with your aurelia-table, and were wondering if there was a built in way to add the static headers. I don't think the documentation mentioned it, but I figure I'd ask anyway.

We initially tried doing this by separating headers and data into 2 different tables, and then using $displayData to relate the two (so the top table sorts, and the bottom table displays.) This works, except the column widths are different for header and data tables, so the headers don't align up with the data. We don't want to hard code the widths each time because there are too many tables to apply it too. We were relying on the browser to auto fit everything.

Is there a way using aurelia-table to have static headers, or could there be something in the future? This may be a stretch, but if there IS something for static headers, is there something for static columns too? So someone could horizontally scroll and have a couple fixed columns on the left?

Any help would be appreciated! Thanks!

esnyder232 avatar Mar 14 '17 21:03 esnyder232

Unfortunately no, there is no official way to support static headers or columns, one of the goals I have with Aurelia Table is to keep it very simple and leverage HTML tables the most possible.

I will take some time though to look into it, but I cannot promise anything, sorry

tochoromero avatar Mar 14 '17 21:03 tochoromero

Alright that's fine. Your aurelia table sorter is still making our lives much easier, so we're going to continue using it.

Thanks for the quick response!

esnyder232 avatar Mar 14 '17 21:03 esnyder232

I would love if even an unofficial way/description of doing this found its way into Aurelia Table. Im in the process of writing a quite advanced application with potentially very large tables, and this is the most critical piece that is missing (and my css-knowledge is bleh...). Im reluctant to start using ag-Grid since I would be losing most of the awesome databinding that aurelia provides. So static/floating headers - yay! Floating column(s) - yay yay!!

Anyhow, keep up the good work.

thejaff2 avatar Mar 15 '17 07:03 thejaff2