Grouping Rows with Client Side HTML Table Sorting

前端 未结 2 1284
我寻月下人不归
我寻月下人不归 2021-02-09 13:26

Are there any existing table sorting libraries, or is there a way to configure tablesorter, to sort every two rows? Alternatly, is there a better way to semantially express my

2条回答
  •  情书的邮戳
    2021-02-09 13:36

    Someone developed this functionality for tablesorter. Check out this page:

    http://blog.pengoworks.com/index.cfm/2008/3/28/Finished-jQuery-Tablesorter-mod-for-Collapsible-Table-Rows

    All you need to do is give secondary rows a class of "expand-child" (this is configurable).

    Does exactly what you need.

提交回复
热议问题