Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reset table and change datasource #192

Open
tdesc opened this issue Feb 7, 2017 · 0 comments
Open

Reset table and change datasource #192

tdesc opened this issue Feb 7, 2017 · 0 comments

Comments

@tdesc
Copy link

tdesc commented Feb 7, 2017

Hello,
I need to display different columns and items in data-table
Is there way to reset table and fill it again?
When I get new dataset with changed ( items and cols ) data-table-cell start to duplicate it content.

<iron-data-table id="table" items="[[searchResult]]" page-size="{{limit}}"> <template is="dom-repeat" items="[[columns]]" as="col" index-as="bdex"> <data-table-column zdex="[[bdex]]" zcol="[[col.property]]" flex="[[_columnFlex(col)]]" name="[[col.header]]" width="[[col.width]]" hidden="[[col.inactive]]"> <template is="header">[[col.header]]</template> <template> <div class='A-card'>[[_getItem(index,column.zdex,column.zcol)]]</div> </template> </data-table-column> </template> </iron-data-table>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant