Saulis / iron-data-table

iron-data-table is a Web Component for displaying data as a table or grid. Built on top of iron-list using Polymer.
Apache License 2.0
147 stars 66 forks source link

Roadmap for supporting iron-list methods for selection / scrolling? #189

Open slhenty opened 7 years ago

slhenty commented 7 years ago

Love this component! It was just what I needed for a list with interactive column headers.

One thing I also need is the ability to select an item in the list imperatively, and scroll to that selected item if not already visible. The native <iron-list> has such methods, but <iron-data-table> does not. I'm working around this limitation by obtaining a reference to the internal <iron-list> to make those calls... but this is a cringe-worthy hack.

Do you have plans to support such <iron-list> API methods? Are you amenable to a PR that makes the attempt?

Saulis commented 7 years ago

Hi @slhenty!

Sorry for the delay – there are functions available like selectItem(item).

When it comes to scrolling APIs, you can access the <iron-list> using table.$.list. As you might've already read, the roadmap is currently empty, unfortunately, since I'm being more focused on <vaadin-grid>.

I recommend posting a feature request to <vaadin-grid> or making a PR to <iron-data-table>.

Thanks!