XF 2.1 Client-side sortable table

ivp

Active member
Is it possible to have client-side sortable table?

Couldn't find any development doc about xf:datalist.

The table should be sorted or rearranged by any of the listed fields in its header. To rearrange by a certain field, one would click the title of the field in the header line. Click field in the header line again to rearrange the list from ascending to descending order and vice versa.
 
What about a table that sorts based on a column?

Screen Size (Inches)BrandRefresh Rate (Hz)
32LG144
27Samsung144

I would like to see the option to sort a column numerically or alphabetically.
 
I have been modifying my XenForo app like crazy and decided to use https://datatables.net/

Here is an example of a modal using it:
Screen Shot 2019-11-20 at 3.56.55 PM.webp

I do not have an addon for you to reference, but you "could" create a new tag that utilizes this script. However, it would be a rather large undertaking...
 
I have been modifying my XenForo app like crazy and decided to use https://datatables.net/

It looks very nice. I've added this to suggestions:
 
Top Bottom