我和jQuery DataTables一起在我的web应用中使用了Fontello。如何使用Fontello中的向上和向下箭头来表示表格标题单元格中的asc/desc排序顺序?
发布于 2016-03-31 06:51:25
我使用jQuery和特定于数据表的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");
}https://stackoverflow.com/questions/36319996
复制相似问题