Releases: vaadin/vaadin-grid
5.0.0-alpha7 – Lumo theme and core style update
Live Demo →
API Documentation →
✨ Updates
- You can now style the first body row with
[part="row"][first]
. Useful for canceling a row border for the first row.
🚨 Breaking changes
- The
vaadin-grid-cell-content
elements are now block containers instead of flex containers, and aligned to the center of the cell (instead of stretched).
Lumo
-
Rows now have borders by default (previously opt-in, now opt-out).
-
Lumo theme variants renamed (unify naming conventions):
borderless
→no-border
row-dividers
→no-row-borders
column-dividers
→column-borders
v5.0.0-alpha6 — IE and Edge scrolling performance fix
Live Demo →
API Documentation →
Changes Since v5.0.0-alpha5:
v4.1.1 — IE and Edge scrolling performance fix
Live Demo →
API Documentation →
Changes Since v4.1.0:
v5.0.0-alpha5 — Lumo version
Live Demo →
API Documentation →
⚠️ Breaking Changes:
- The element now uses
vaadin-lumo-styles
dependency instead ofvaadin-valo-styles
. When using with other Vaadin Elements, installing latest alpha versions is strongly recommended, to avoid having both packages installed and imported.
Changes Since v5.0.0-alpha4:
v5.0.0-alpha4 — Fix tree-toggle icon name
Live Demo →
API Documentation →
Changes Since v5.0.0-alpha3:
- 438f464 Align with skeleton: add separate file for test suites
- d4a652c Hide internal stuff from API docs
- 197a2de Mark lifecycle callbacks as protected to fix polymer lint
- 17ae6ad Remove test ignore, align with skeleton
- 05d64ee Update demo helpers, use shared styles in demos
- c62495c Remove unused dev dependencies and imports in demos
- 3621c0b Update tree-toggle icon name
v5.0.0-alpha3 — Valo dependency update
Live Demo →
API Documentation →
⚠️ Breaking Changes:
- The element now uses
vaadin-valo-styles
dependency instead ofvaadin-valo-theme
. When using with other Vaadin Elements, installing latest alpha versions is strongly recommended, to avoid having both packages installed and imported.
Changes Since v5.0.0-alpha2:
-
a355ba4 Update screenshot link
-
a9211d9 Fix inline demo for webcomponents.org
-
cc392f0 Update Valo dependency
- Update other Vaadin dependencies as well
- Remove unused paper-button dependency
- Small fixes to the theme and demos
-
8737e22 Updated example screenshot
-
6599389 Add Getting Started and File Structure docs sections
-
7abfe93 Prevent text selection while column reorder on IE
-
db19f38 Notify resize on appear
-
b4c29be Fix tests
v4.1.0 - Tree support
Live Demo →
API Documentation →
New Features Since v4.0:
-
Tree support for data provider:
grid.dataProvider = function(params, callback) { // New request param: `params.parentItem`: // - `null` when first tree level is requested, // - parent item reference when a tree sublevel is requested. yourApiRequest(params, function(response) { // Callback expects items for the page, and total size of this tree level callback(response.items, response.totalLevelSize); }); };
-
New template variables for use in
<vaadin-grid-column>
body cell templates:level
(type: integerNumber
), current item’s level of the tree. First level is0
.expanded
(type:Boolean
), true when current item’s tree sublevel is expanded. Supports two-way binding. Default isfalse
, tree is collapsed.
-
New helper element:
<vaadin-grid-tree-toggle>
for use in column templates:<vaadin-grid data-provider="[[treeDataProvider]]"> <vaadin-grid-column> <template class="header">Name</template> <template> <vaadin-grid-tree-toggle leaf="[[!item.hasChildren]]" expanded="{{expanded}}" level="[[level]]"> [[item.name]] </vaadin-grid-tree-toggle> </template> </vaadin-grid-column> </vaadin-grid>
-
New
<vaadin-grid>
tree APIs:expandItem(item)
methodcollapseItem(item)
methodexpandedItems
array
-
loading
(Boolean, read-only, notifying) property API is exposed on the<vaadin-grid>
element. -
loading
state attribute on therow
parts is available for theming
v5.0.0-alpha2
Live Demo →
API Documentation →
Changes Since v5.0.0-alpha1:
v5.0.0-alpha1 - Use Valo theme by default
Live Demo →
API Documentation →
Changes Since v4.1.0-beta1:
-
f972257 Bump dependencies versions
-
148e130 Use Vaadin.ElementMixin
-
dbab831 Added basic example screenshot file.
-
e88f7ae Add Valo theme variations demos [skip ci]
-
da14af7 Add ThemableMixin documentation to Styling docs.
-
709da8d Fix wrong JSDoc annotation
-
66ed38c Drop legacy API for slots
-
77b239a Rename private column template properties
-
c830633 Fix tests broken by Valo theme
-
1e2b30c Cleanup Valo theme
- Move
<vaadin-grid-sorter>
and<vaadin-grid-tree-toggle>
Valo theme
styles into separate files - Make
theme/valo/all-imports.html
include Valo theme - Simplify
<vaadin-grid-sorter>
styles, remove default theme include - Small adjustments to crud demo
- Move
-
cde941b Use Valo theme by default
v4.1.0-beta1
Live Demo →
API Documentation →
Changes Since v4.1.0-alpha6:
New Features Since v4.0:
-
Tree support for data provider:
grid.dataProvider = function(params, callback) { // New request param: `params.parentItem`: // - `null` when first tree level is requested, // - parent item reference when a tree sublevel is requested. yourApiRequest(params, function(response) { // Callback expects items for the page, and total size of this tree level callback(response.items, response.totalLevelSize); }); };
-
New template variables for use in
<vaadin-grid-column>
body cell templates:level
(type: integerNumber
), current item’s level of the tree. First level is0
.expanded
(type:Boolean
), true when current item’s tree sublevel is expanded. Supports two-way binding. Default isfalse
, tree is collapsed.
-
New helper element:
<vaadin-grid-tree-toggle>
for use in column templates:<vaadin-grid data-provider="[[treeDataProvider]]"> <vaadin-grid-column> <template class="header">Name</template> <template> <vaadin-grid-tree-toggle leaf="[[!item.hasChildren]]" expanded="{{expanded}}" level="[[level]]"> [[item.name]] </vaadin-grid-tree-toggle> </template> </vaadin-grid-column> </vaadin-grid>
-
New
<vaadin-grid>
tree APIs:expandItem(item)
methodcollapseItem(item)
methodexpandedItems
array
-
loading
(Boolean, read-only, notifying) property API is exposed on the<vaadin-grid>
element. -
loading
state attribute on therow
parts is available for theming