cellPartNameGenerator

A function that allows generating CSS part names for grid cells in Shadow DOM based on their row and column, for styling from outside using the ::part() selector.

The return value should be the generated part name as a string, or multiple part names separated by whitespace characters.

Receives two arguments:

  • column The <vaadin-grid-column> element (undefined for details-cell).

  • model The object with the properties related with the rendered item, contains:

  • model.index The index of the item.

  • model.item The item.

  • model.expanded Sublevel toggle state.

  • model.level Level of the tree represented with a horizontal offset of the toggle button.

  • model.selected Selected state.