paper-datatable icon indicating copy to clipboard operation
paper-datatable copied to clipboard

complex-paper-datatable-card.html demo `<dom-repeat>` filter issues

Open David-Mulder opened this issue 8 years ago • 3 comments

See https://github.com/Polymer/polymer/issues/3094

Can be temporarily fixed by changing line 4195 in Polymer.html to

keys = keys.filter(function (a, i, keys) {
  return self._filterFn(c.getItem(a), i, keys);

David-Mulder avatar Nov 26 '15 15:11 David-Mulder

So I gather that this needs to be fixed before you implement a filter option in the component?

moderndeveloperllc avatar Dec 08 '15 19:12 moderndeveloperllc

@moderndeveloperllc: no, this has nothing to do with a generic filter option. Do feel free to open an issue, but it runs down to this:

  • in the card you can already filter in any way you like (just trigger retrieveVisibleData after changing your filter)
  • in the plain datatable you would need to filter yourself which could maybe be neat to add.

David-Mulder avatar Dec 08 '15 20:12 David-Mulder

The Polymer developers seem very unwilling to add the array index to the callback for performance reasons. What are the actual consequence to this? I am failing to see the issue! (although it might be completely 100% clear...)

mercmobily avatar Feb 21 '16 15:02 mercmobily