iron-data-table: Databinding doesnt work
Hi
I think thats an easy one.
I have a json-object containing items with two attributes (name,state)
I try to bind this into iron-data-table
<template is="dom-bind" >
<remote-data data-source="{{riskCombined}}" ></remote-data>
<iron-data-table selection-enabled size="100000" data-source="[[riskCombined]]" >
<data-table-column name="First Name">
<template>[[item.name]]</template>
</data-table-column>
<data-table-column name="Last Name">
<template>[[item.state]]</template>
</data-table-column>
<data-table-column name="Email">
<template>test</template>
</data-table-column>
</iron-data-table>
</template>
Where am I going wrong?
About this issue
- Original URL
- State: closed
- Created 8 years ago
- Comments: 20 (9 by maintainers)
My mistake, try using
items
instead ofdata-source
attribute.