如何使用angularjs

时间:2017-07-26 07:20:45

标签: asp.net angularjs

$scope.dataTableOpt = {
        "aLengthMenu": [[10, 50, 100, -1], [10, 50, 100, 'All']],
        "searching": false,
        "paging": true,
        "info": false,
        "lengthChange": false
    };

https://i.stack.imgur.com/T92Ep.png

2 个答案:

答案 0 :(得分:0)

将此添加到您的选项对象:

"enablePaginationControls": false

如果这不起作用,您可能还想删除"paging": true

答案 1 :(得分:0)

  $scope.dataTableOpt = {
    //custom datatable options 
    // or load data through ajax call also
    "aLengthMenu": [[10, 50, 100, -1], [10, 50, 100, 'All']],
    "searching": false,
    "paging": (listCount > 10 ? true : false),
    "info": false,
    "lengthChange": false
};