koalyptus / TableFilter

A Javascript library making HTML tables filterable and a bit more :)
https://www.tablefilter.com
MIT License
323 stars 95 forks source link

Getting data as array from filtered table #777

Closed jacky4566 closed 4 years ago

jacky4566 commented 4 years ago

Enhancement/feature description I would like my users to be able to download the filtered data as a CSV file. How can I get the data from the filtered table as an array for download queuing?

Steps which explain the enhancement/feature

  1. New function which returns array of elements from user filtered table

Current and suggested behavior New Feature

Why would the enhancement be useful to most users Surely this must be a requested feature already? This would allow data to be used in other parts of the page. Would also be useful for filtering points on a google map.

Screenshots and GIFs None.

Additional context

Describe alternatives you've considered Current implementation involves user filtering before table generation.

TableFilter Version: Unsure, latest Browser and version: All OS and version: All Device: All

jacky4566 commented 4 years ago

Never mind I found the API I wanted. getFilteredData()