Angular js Datatables 页脚添加链接
Angular js Datatables footer add links
我想在分页详细信息出现的数据表的页脚部分添加链接,即我想在 'showing 1 of 20 entries in 40' 和分页的前一个 buttons.How 之间添加链接,这可以完成吗?有什么建议吗??
您需要将其添加到页脚的左侧或右侧 table,我添加到它显示的左侧 Showing page _PAGE_ of _PAGES_
jQuery:
$(document).ready( function() {
$('#example').dataTable( {
"language": {
"info": "Showing page _PAGE_ of _PAGES_ <a href='http://www.example.com'>Link1</a>"
}
});
});
使用 angular-datatable,再次指定选项的方式将根据您定义的 table 和 angular版本Angular1 option and Angular2 option
$scope.dtOptions = DTOptionsBuilder.newOptions().withLanguage(
"sInfo":"Showing page _PAGE_ of _PAGES_ <a href='http://www.example.com'>Link1</a>",
);
我想在分页详细信息出现的数据表的页脚部分添加链接,即我想在 'showing 1 of 20 entries in 40' 和分页的前一个 buttons.How 之间添加链接,这可以完成吗?有什么建议吗??
您需要将其添加到页脚的左侧或右侧 table,我添加到它显示的左侧 Showing page _PAGE_ of _PAGES_
jQuery:
$(document).ready( function() {
$('#example').dataTable( {
"language": {
"info": "Showing page _PAGE_ of _PAGES_ <a href='http://www.example.com'>Link1</a>"
}
});
});
使用 angular-datatable,再次指定选项的方式将根据您定义的 table 和 angular版本Angular1 option and Angular2 option
$scope.dtOptions = DTOptionsBuilder.newOptions().withLanguage(
"sInfo":"Showing page _PAGE_ of _PAGES_ <a href='http://www.example.com'>Link1</a>",
);