4 ms·
I kind of want to fork it and work out the jQuery dependency. *EDIT* Would probably be easier to start a new one and maybe use PapaParse to parse the CSV.
by hk1337 1y ago
I kind of want to fork it and work out the jQuery dependency.
*EDIT* Would probably be easier to start a new one and maybe use PapaParse to parse the CSV.
- catapart 1y agoMy first thought too. Though, I'll probably write it as a custom element so that I can pass a csv path to it via an attribute. Seems like a really handy thing to have, and I'm already working on a similar type of thing for pdfs. Definitely in the 'everything is a nail' phase of building a library of custom elements.
- hk1337 1y agoI was thinking just a table element with data attributes and maybe a class name.
- catapart 1y agoFor sure! I was just thinking of wrapping that table with an element so I don't have to call "load" or "init" or whatever from a separate script. I'm a big fan of html that works well and tables are pretty awesome for tabular data.
- indigodaddy 1y agoI think this fork actually uses papaparse. I actually thought it was slightly less attractive though and also it did not have the download csv capability: https://github.com/pavelsr/csv-to-tablesorter https://github.com/pavelsr/csv-to-tablesorter