<vaadin-grid> is a free, high quality data grid / data table Polymer element, part of the Vaadin Core Elements.
<script src="../webcomponentsjs/webcomponents-lite.js"></script>
<link rel="import" href="../iron-ajax/iron-ajax.html">
<link rel="import" href="vaadin-grid.html">
<dom-module id="my-grid">
<template>
<iron-ajax auto handle-as="json" last-Response="{{items}}"
url="https://randomuser.me/api?results=100"></iron-ajax>
<vaadin-grid demo items="[[items.results]]" visible-rows="8">
<table>
<colgroup>
<col name="name.first" resizable>
<col name="name.last" resizable>
<col name="email" resizable flex>
</colgroup>
</table>
</vaadin-grid>
</template>
<script>
Polymer({
is: "my-grid"
});
</script>
</dom-module>
<my-grid></my-grid>
Visit https://vaadin.com/elements/-/element/vaadin-grid for features, demos and documentation.
See the contribution instructions which apply to all Vaadin core elements.
See the development instructions which apply to all Vaadin core elements.
The internal implementation of vaadin-grid (1.0) is written in GWT, as it is based on the same implementation which is used in Vaadin Framework 7.
Below are instructions how to work with the GWT/Java code:
The compiled module is in the repository (vaadin-grid.min.js
), so you don't need to compile it unless you modify any .java
files.
First, make sure you've installed all the necessary tooling:
Install Gulp:
$ npm install -g gulp
Install npm dependencies:
$ npm install
Run the GWT compilation:
$ gulp gwt
Compiling using "pretty" output:
$ gulp gwt --gwt-pretty
To easily debug the Java code in the browser, use SDM:
$ gulp gwt:sdm
Apache License 2.0