表格加载完成事件,表格行数据二层展开及缩起 事件

    var $tableFahuo = $('#tabFahuo');
    $tableFahuo.on('load-success.bs.table', function (data) {
        $.each(currExpandFahuoRows, function (v, n) {
            $tableFahuo.bootstrapTable('expandRow', n);
        });
        setTimeout(function () {
            $tableFahuo.bootstrapTable('scrollTo', currFahuoScroll);
        }, 200);

    }).on('expand-row.bs.table', function (index, row, $detail) {
        if (currExpandFahuoRows.indexOf(row) < 0) {
            currExpandFahuoRows.push(row);
        }
    }).on('collapse-row.bs.table', function (index, row, $detail) {
        currExpandFahuoRows.forEach(function (item, index, arr) {
            if (item == row) {
                currExpandFahuoRows.splice(index, 1);
            }
        });
    });

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-04-05
  • 2022-12-23
  • 2021-07-29
  • 2022-12-23
  • 2021-08-08
  • 2021-04-05
猜你喜欢
  • 2022-02-09
  • 2021-12-25
  • 2022-12-23
  • 2022-02-09
  • 2021-11-12
  • 2021-08-25
相关资源
相似解决方案