9 ms·
Yesterday I wrote a custom page which dumped out a table for some investigation. I threw jquery and a tablesorter plug-in. Without JS you get the table, but wit
by midasuni 3y ago
Yesterday I wrote a custom page which dumped out a table for some investigation. I threw jquery and a tablesorter plug-in. Without JS you get the table, but with you can easily sort and filter. Took about 2 minutes to add the optional filter. The backend is bash of course.
- sireat 3y agoFor tables my favorite jQuery plug-in is: https://datatables.net/ https://datatables.net/ Have a page with some tables? A few lines of jQuery and you have search sorting etc. It can be customized but defaults are fine. This is how abstractions and progressive enhancement should be done.
- midasuni 3y agoI’m not even sure what I used, it’s the same 5 lines I’ve used for years. Boom bang and on to the next problem. For every unicorn saas webapp $300k a year developers are writing there’s a thousand small pages. If you’re building a house you aren’t going to use a Swiss Army knife, but if you’re camping out for a couple of days you aren’t going to take a van full of power tools.
- anakaine 3y agoA couple.of well selected power tools are certainly helpful, however. A battery blower to start the fire, a small electric chainsaw for any wood cutting depending on the area and what you take in, and a portable fan if you're in a hot climate. Sometimes a couple of selected power tools are very helpful.
- ryanisnan 3y agoWeird analogy. I’ve camped my whole life, never once brought a power tool.
- GrumpyNl 3y agoBig plus is, it also gives yo the option to export the tables to pdf and other file formats.
- mobilemidget 3y agoI personally prefer https://sortablejs.github.io/Sortable/ https://sortablejs.github.io/Sortable/ over datatables.net Though both do what I typically need them to do, customising datatables.net takes me a bit more time though