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

[grid] Add part names for table sections (thead/tfoot/tbody) #8033

Open
stefanuebe opened this issue Oct 30, 2024 · 0 comments
Open

[grid] Add part names for table sections (thead/tfoot/tbody) #8033

stefanuebe opened this issue Oct 30, 2024 · 0 comments
Labels

Comments

@stefanuebe
Copy link

Describe your motivation

For the sake of completeness it would make sense to not only set parts for rows and cells, but also table sections like thead, to allow easier selection in CSS.

A use case could be to simply hide the header/footer without any server side "remove or reappend the content" setup, but simply having something like

vaadin-grid.hide-header::part(head) {
    display: none
}

or to apply general styling for all header rows

vaadin-grid::part(head) {
    color: salmon; /* hmmmm, salmon */
}

Describe the solution you'd like

thead, tbody and tfoot should have appropriate part names, e.g.

Describe alternatives you've considered

Using Javascript to access the mentioned parts to either apply custom styles or add the part attributes.

Additional context

No response

@yuriy-fix yuriy-fix added enhancement New feature or request theme vaadin-grid labels Oct 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants