-
Notifications
You must be signed in to change notification settings - Fork 83
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] API for applying classnames (or part names) to column header and footer cells #1434
Comments
A generator might be an overkill for this purpose. Since a column/column group can only have 1 header cell (+ 1 footer cell), it might be enough to have a string type property for it |
Valid point, that's probably better. |
Even better would be to have a |
I use vaadin 18, today I headed this problem when I try to style some cell in the header individually. I want one of the header cell to be centered and the rest left aligned. Tried the following but no effect. Tried the following in .css file also no effect:
Please fix the issue.. |
With the switch to |
Covered by #6629 and vaadin/flow-components#5566 |
Description
A cell class name generator was added here vaadin/vaadin-grid#1297
However, it does not allow generating classes for header or footer rows. In the issue, it is mentioned that this can be achieved by wrapping the contents of these cells in an element with the desired class name. This has at least two issues:
<dom-module>
, while other styles need to be in a<custom-style>
The solution could either be to set a separate generator for header and footer cells, or for the current implementation to also affect header and footer cells. The cells can still be targeted individually with
[part~="header-cell"]
.The text was updated successfully, but these errors were encountered: