diff options
Diffstat (limited to 'vaadin-grid/vaadin-grid.html')
-rw-r--r-- | vaadin-grid/vaadin-grid.html | 30 |
1 files changed, 19 insertions, 11 deletions
diff --git a/vaadin-grid/vaadin-grid.html b/vaadin-grid/vaadin-grid.html index 1b147be..dbad88b 100644 --- a/vaadin-grid/vaadin-grid.html +++ b/vaadin-grid/vaadin-grid.html @@ -2,8 +2,8 @@ @element v-grid --> -<link rel='import' href='../../polymer/polymer.html'> -<script type="text/javascript" language="javascript" src="VaadinGridImport.nocache.js"></script> +<link rel='import' href='../../bower_components/polymer/polymer.html'> +<script src="VaadinGridImport.nocache.js"></script> <style> v-grid > table { @@ -48,7 +48,7 @@ More examples available at http://vaadin.github.io/components-examples/v-grid/ font: 400 13px/1.1 Roboto, sans-serif; color: rgba(0, 0, 0, 0.87); cursor: default; - transition: opacity 200ms; + transition: opacity 50ms; white-space: nowrap; } @@ -243,7 +243,6 @@ More examples available at http://vaadin.github.io/components-examples/v-grid/ display: inline-flex; height: inherit; overflow: hidden; - text-overflow: ellipsis; transition: opacity 0.1s ease-in; } @@ -266,6 +265,7 @@ More examples available at http://vaadin.github.io/components-examples/v-grid/ .v-grid-header th { font-weight: 500; + text-align: left; } .v-grid-header-deco { @@ -441,11 +441,7 @@ More examples available at http://vaadin.github.io/components-examples/v-grid/ background-color: #03A9F4; } - /* Small adjustments for the checkbox in the header */ - .v-grid-header input[type="checkbox"] + label:before { - background-color: white; - } - + /* Small adjustment for the checkbox in the header */ .v-grid-header input[type="checkbox"] + label:after { transition: none; } @@ -466,7 +462,7 @@ More examples available at http://vaadin.github.io/components-examples/v-grid/ width: 100% !important; height: 100% !important; } - + /* The following is a workaround to https://dev.vaadin.com/ticket/18376 */ .v-grid-scroller[invisible]::-webkit-scrollbar { border: none; @@ -540,7 +536,9 @@ More examples available at http://vaadin.github.io/components-examples/v-grid/ set sortOrder(sortOrder) { _this._grid.setSortOrder(sortOrder); }, - + getItem: function(rowIndex, callback, onlyCached) { + _this._grid.getItem(rowIndex, callback, onlyCached); + }, clearCache: function(estimatedNewSize) { _this._grid.getDataSource().clearCache(estimatedNewSize); } @@ -944,6 +942,16 @@ More examples available at http://vaadin.github.io/components-examples/v-grid/ }, /** + * An array containing items determining rows in the grid. + * + * @property {Array<Object>} columns + * @type {Array<Object>} + */ + set items(items) { + this.data.source = items; + }, + + /** * Executes a callback when the grid has finished any pending work. * * @method then |