stevenrskelton / sortable-table

Polymer Web Component that generates a sortable <table> from inlined or AJAX JSON, JSON5, and arrays.
https://stevenrskelton.github.io/sortable-table/
MIT License
196 stars 37 forks source link

Filter by column value #27

Open timboven opened 9 years ago

timboven commented 9 years ago

This table-component has a lot of handy features that make it usable in multiple places but adding a filter-option that e.g. shows an input-box in each column header that can be used to filter the rows of the table would make it even handier.

This would filter the rows where the value of that column doesn't start(/contains?) the given filter-value. Users can use this to get that part out of the resultset that interests them the most.

Similar components (like rich:datatable of richfaces) provide similar features.

stevenrskelton commented 9 years ago

Agreed, filtering will be nice. v0.11.0 introduced some basic filtering, but to do this properly a couple things still need to be implemented.

1: Column types, so that applicable filters display for specific columns. 2: Value pickers for each comparison type; a date/calendar picker needs to be selected. 3: Remote/server-side datasources need to updated to support it. 4: Applied filters need to be visible graphically 5: Filters need to be theme-able, or definable using a template