Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Static headers with aurelia-table? #29

Open
esnyder232 opened this issue Mar 14, 2017 · 3 comments
Open

Static headers with aurelia-table? #29

esnyder232 opened this issue Mar 14, 2017 · 3 comments

Comments

@esnyder232
Copy link

esnyder232 commented Mar 14, 2017

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
Copy link
Owner

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
Copy link
Author

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
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants