tochoromero / aurelia-table

Simple functional data table for Aurelia
https://tochoromero.github.com/aurelia-table
MIT License
67 stars 25 forks source link

Static headers with aurelia-table? #29

Open esnyder232 opened 7 years ago

esnyder232 commented 7 years ago

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!

tochoromero commented 7 years ago

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

esnyder232 commented 7 years ago

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!

thejaff2 commented 7 years ago

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.