0
我開始與聚合物入門-kit和Vaadin柵V2-βVAADIN-GRID V2和聚合物添加網格的詳細
我能得到這個代碼來顯示,但是具有顯示行細節麻煩。 我喜歡去的外觀效果: https://cdn.vaadin.com/vaadin-core-elements/master/vaadin-grid/demo/other.html 行細節
此代碼我從例子了,其工作。可能有人紀念這件事,並添加怎樣的細節將完成請
<link rel="import" href="../bower_components/polymer/polymer.html">
<link rel="import" href="shared-styles.html">
<dom-module id="my-view6">
<template>
<style include="shared-styles">
:host {
display: block;
padding: 10px;
}
</style>
<vaadin-grid items='[{"name": "John", "surname": "Lennon", "role": "singer"},
{"name": "Ringo", "surname": "Starr", "role": "drums"},
{"name": "John", "surname": "Lennon", "role": "singer"},
{"name": "Ringo", "surname": "Starr", "role": "drums"},
{"name": "John", "surname": "Lennon", "role": "singer"},
{"name": "John", "surname": "Lennon", "role": "singer"},
{"name": "Ringo", "surname": "Starr", "role": "drums"},
{"name": "John", "surname": "Lennon", "role": "singer"},
{"name": "Ringo", "surname": "Starr", "role": "drums"},
{"name": "John", "surname": "Lennon", "role": "singer"},
{"name": "Ringo", "surname": "Starr", "role": "drums"}]'>
<vaadin-grid-column-group>
<vaadin-grid-column>
<template class="header">Name</template>
<template>[[item.name]]</template>
</vaadin-grid-column>
<vaadin-grid-column>
<template class="header">Surname</template>
<template>[[item.surname]]</template>
</vaadin-grid-column>
</vaadin-grid-column-group>
<vaadin-grid-column>
<template class="header">Role</template>
<template>[[item.role]]</template>
</vaadin-grid-column>
</vaadin-grid>
</template>
<script>
Polymer({
is: 'my-view6',
});
</script>
</dom-module>