是否可以在Polymer应用程序的LitElement中使用vaadin-grid?

And*_*rea 1 web-component polymer vaadin-grid

使用Polymer PWA(https://polymer.github.io/pwa-starter-kit/)的最小示例(如果有),以正确显示vaadin网格是什么?我尝试了许多不同的组合,但从来没有工作过,经常会出现这样的警告:property-accessors.js:275 Polymer :: Attributes:无法将Array解码为JSON我做错了什么?谢谢安德烈

小智 7

从v5.2.0-beta1开始,我们建议使用以下网格功能:

  • 列辅助元素(vaadin-grid-filter-column,vaadin-grid-sort-column)
  • 列便利属性(path,headertext-align)
  • 您之前使用过模板的更复杂案例的渲染器

请参阅此处的示例:https ://glitch.com/edit/#!/ lying- blanket ?path = app.js:29:42 https://lying-blanket.glitch.me/

注意:我fetch这里仅使用API来简化,如果需要,您可以使用XHR.