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

Possibility to freeze columns #76

Open
raghina opened this issue Jun 10, 2024 · 2 comments
Open

Possibility to freeze columns #76

raghina opened this issue Jun 10, 2024 · 2 comments

Comments

@raghina
Copy link

raghina commented Jun 10, 2024

Is possible to freeze the n first columns?

@anmcgrath
Copy link
Owner

@raghina not at the moment, but I think it would be great to be able to freeze the first n rows or columns.

@brenomansurrabelo
Copy link

You can do this with CSS:

table tr:nth-child(4) td:first-of-type {
    position: sticky;
    left: 0;
    top: 0;
    z-index: 1;
}

table tr:not(:nth-child(5)) td:nth-child(1) {
    background: #fff;
    position: sticky;
    left: 0;
}

table tr:nth-child(4) td:not(:first-child) {
    position: sticky;
    top: 0;
}

table tr:nth-child(5) {
    position: sticky;
    top: 24px;
}

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