How can i style Grid Scroller? I can’t style that default grid scroller. Iam using hilla with react front-end.Could you please help me!
Hi. If you’re referring to this internal element (with id “scroller”) https://github.com/vaadin/web-components/blob/main/packages/grid/src/vaadin-grid.js#L263, ideally there should not be a need to style it. What kind of styling would you apply to it?
i want to change the color of the scroller and style the border-radius.
To add border-radius to the grid, try the following:
vaadin-grid {
border-radius: 1em;
overflow: hidden;
}
To change cell background color:
vaadin-grid::part(cell) {
background: red;
}
See the Grid styling documentation for more details: https://vaadin.com/docs/latest/components/grid/styling