我正在实现数据表并使用 MongoDb、Angular-Js。数据表显示最大到最大 1000 行。如果 API 有 999 条记录则显示 999 行,如果 API 有 1001 则仅显示 1000 行。如果 API 有 2000 那么它也显示 1000。
$scope.standardOptions = DTOptionsBuilder
.fromFnPromise(R.all('----api call--').getList())
.withDOM("<'dt-toolbar'<'col-xs-12 col-sm-6'f><'col-sm-6 col-xs-12 hidden-xs'l>r>" +
"t" +
"<'dt-toolbar-footer'<'col-sm-6 col-xs-12 hidden-xs'i><'col-xs-12 col-sm-6'p>>")
.withBootstrap();
$scope.standardColumns = [
DTColumnBuilder.newColumn('flightNo').withOption('defaultContent', '-'),
DTColumnBuilder.newColumn('eta').renderWith(dataRendererETA).withOption('defaultContent', '-'),
DTColumnBuilder.newColumn('etd').renderWith(dataRendererETA).withOption('defaultContent', '-'),
];
HTML
<div class="widget-body no-padding">
<table datatable dt-options="datatables.standardOptions" dt-columns="datatables.standardColumns" class="table table-striped table-bordered table-hover" width="100%">
<thead>
<tr>
<th>Flight no.</th>
<th>eta</th>
<th> etd</th>
</tr>
</thead>
</table>
</div>
我的一些 API 有超过 1000 条记录那么我怎样才能获得数据表中的所有记录。