The Vaadin Elements team is hard at work bringing more features to Vaadin Core Elements, and we’d like to share the release of vaadin-grid 1.2.0-beta1. This pre-release will let you use the latest version of vaadin-grid while we finalize the stable release of vaadin-grid 1.2.0.
In addition to bug fixes and optimizations, this 1.2.0 beta release introduces the much requested dynamic column reordering for vaadin-grid.
- vaadin-grid now allows non-frozen columns to be dragged and reordered. This change was the result of a dedicated community member taking on this feature and running with it. This is the power of open source!
- vaadin-grid columns can now be resized. This was another contribution from the same community members that added column reordering.
- vaadin-grid 1.2 beta also includes default sorting functions for array data. Just add and array and mark a column as sortable to enable sorting.
Test Drive Vaadin Grid 1.2 BetaTo install the beta release of vaadin-grid 1.2 with bower, run the following command from your project folder:
$ bower install --save vaadin-grid#~1.2.0-beta1
To revert back to the stable release, run:
$ bower install --save vaadin-grid
To enable column reordering change your code to read:
<vaadin-grid column-reordering-allowed=""> <!-- ... --> </vaadin-grid>
To allow a column to be resized, add the resizable property to your column: