-
Notifications
You must be signed in to change notification settings - Fork 17
Description
Came here because of this issue in paper-datatable: David-Mulder/paper-datatable#78
I have a datatable that I want to populate with different data based on user selection of what table they are looking at. Unfortunately the headers for the first table loaded don't seem to update when they select a different table. (Note that if the second one has more columns than the first, the new columns do appear with the correct headers, but any columns that were already loaded don't update, despite the property pulling the correct item property in the rows).
However, I can't use a <template is="dom-repeat"...> element to create dynamic columns with paper-datatable-api, because the element doesn't observe the columns, it just sets them in the element's "attached" method.
Calling _setColumns manually to reload the columns works, but does not fire an update event so I would have to manually do that as well.