Open robrez opened 7 months ago
Thanks for the issue. We have loading-row-cell
part, which you could probably use to apply some CSS properties:
vaadin-grid::part(loading-row-cell) {
--cell-color: #e2e2e2;
}
vaadin-grid-cell-content {
color: var(--cell-color);
}
This would be similar to the idea that we used for cell content padding in https://github.com/vaadin/web-components/pull/6646
Oh, good idea. yes.. that would work.
Describe your motivation
To generate a skeleton layout for content within a loading row
Describe the solution you'd like
I think, perhaps to have the
loading
attribute propagated to individual cell-content elementsDescribe alternatives you've considered
Currently, a functional CSS rule causes all cells within a loading row to be "invisible" (
opacity: 0
on v23 andvisibility: hidden
on v24)I cannot target that cell content w/
::part
. I can make a rule such as this...However that inappropriately targets rows that aren't loading whenever anything is loading.
I cannot use
cellPartNameGenerator
for a few reasons...GridItem
model has no awareness of an item's loading state.. well, more accurately there is no item to have a loading state.Additional context
No response