Skip to content

Dynamic columns not supported. #15

@dzliergaard

Description

@dzliergaard

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions