我在我的网络应用程序中使用 Fontello 和 jQuery DataTables。如何使用 Fontello 中的向上和向下箭头来表示表格标题单元格中的 asc/desc 排序顺序?
问问题
59 次
1 回答
0
我设法使用 jQuery 和 dataTable 特定的drawCallback
函数来做到这一点:
drawCallback: function( settings ) {
$(".dataTable thead tr th span.icon-up-open").remove();
$(".dataTable thead tr th span.icon-down-open").remove();
$(".dataTable thead tr th.sorting_desc").append("<span class='pull-right icon-up-open'></span");
$(".dataTable thead tr th.sorting_asc").append("<span class='pull-right icon-down-open'></span");
}
于 2016-03-30T22:51:24.550 回答