Valo
Theme source code
Grid
You can combine all of the theme variants together, e.g. theme="compact borderless row-dividers"
Default
[[item.firstName]]
[[item.lastName]]
[[item.address.street]], [[item.address.city]]
Compact
<vaadin-grid theme="compact">
[[item.firstName]]
[[item.lastName]]
[[item.address.street]], [[item.address.city]]
Borderless
<vaadin-grid theme="borderless">
[[item.firstName]]
[[item.lastName]]
[[item.address.street]], [[item.address.city]]
Row dividers
<vaadin-grid theme="row-dividers">
[[item.firstName]]
[[item.lastName]]
[[item.address.street]], [[item.address.city]]
Column dividers
<vaadin-grid theme="column-dividers">
[[item.firstName]]
[[item.lastName]]
[[item.address.street]], [[item.address.city]]
Row stripes
<vaadin-grid theme="row-stripes">
[[item.firstName]]
[[item.lastName]]
[[item.address.street]], [[item.address.city]]
Wrap cell content
<vaadin-grid theme="wrap-cell-content">
By default, cell contents don’t wrap and all overflowing content is either clipped or truncated. Apply the wrap-cell-content
theme to make the cell content wrap instead.
This example is also using the row-dividers
theme variant to make the content easier to read.
[[item.firstName]]
[[item.lastName]]
[[item.address.street]], [[item.address.city]]
Column grouping, column resizing, frozen columns and footers
[[index]]
[[item.name.first]]
[[item.name.last]]
[[item.location.city]]
[[item.location.state]]
[[item.location.street]]
Tree/hierarchy
[[item.name]]
[[item.name]] description
Another column for [[item.name]]
Tree connectors (experimental)
<vaadin-grid-tree-toggle theme="connectors">
[[item.name]]
[[item.name]] description
Another column for [[item.name]]
Styling API
Shadow parts and states
See the API documentation for vaadin-grid