angularjs – 在angular datatable中如何更改每页显示记录选项
发布时间:2020-12-17 07:19:23 所属栏目:安全 来源:网络整理
导读:在 jquery数据表中,我可以更改每页的记录选项 "aLengthMenu": [[50,100,150,200,-1],[50,"All"]], 任何人都知道如何以角度实现这一目标? 我试过了 $scope.dtOptions = DTOptionsBuilder.newOptions().withOption('order',[1,'asc']).withDisplayLength(250)
在
jquery数据表中,我可以更改每页的记录选项
"aLengthMenu": [[50,100,150,200,-1],[50,"All"]], 任何人都知道如何以角度实现这一目标? 我试过了 $scope.dtOptions = DTOptionsBuilder.newOptions().withOption('order',[1,'asc']).withDisplayLength(250); 和 $scope.dtOptions = DTOptionsBuilder.newOptions().withOption('order','asc']).withOption('LengthMenu',[[50,"All"]]) 我想要显示50,200 我在http://l-lin.github.io/angular-datatables/#/api搜索但找不到
你很接近……使用’lengthMenu’选项只有一个数组:
$scope.dtOptions = DTOptionsBuilder.newOptions().withOption('order','asc']).withOption('lengthMenu',200]) (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |