DataTable Row Toggle Option

后端 未结 3 2006
醉话见心
醉话见心 2021-02-04 18:46

My Issue:

I am working on a project which is related to DataTableJS. I need a row grouping feature and It\'s separated with grouped rows. Just I want to

3条回答
  •  花落未央
    2021-02-04 19:29

    You just need to write this

    table.on( 'click', 'tr.group', function () {
    
        var rowsCollapse = $(this).nextUntil('.group');
        $(rowsCollapse).toggleClass('hidden');
    
        });
    

提交回复
热议问题