0
我使用Inspinia角度主题的脚步来排序我得到的几个表。实际的插件是ziscloud角足迹(在这里找到https://github.com/ziscloud/angular-footable)。这张桌子有大约50个参赛作品,这个时候可能会获得更多的分数,所以在这个意义上分页是一条路。 我试图使用分页,但它不工作,再加上第一次加载所有的字段,然后它过滤前10项。Angular Footable(ziscloud)在过滤后只显示10个结果
<table class="table table-hover footable toggle-arrow-tiny" data-page-size="8">
<thead>
<tr>
<th width="2%" data-sort-ignore="true"></th>
<th width="15%" data-sort-initial="true">Publish date</th>
<th width="15%">Start date</th>
<th width="20%">Name</th>
<th width="15%" data-sort-ignore="true">Total bookings</th>
<th width="23%" data-sort-ignore="true"></th>
</tr>
</thead>
<tbody>
<tr data-ng-repeat="item in vm.pastEducation">
<td class="icon">
<img ng-src="{{ vm.showActivityIcon(item.activity.descriptionText) }}" class="list-icon" alt="{{item.activity.descriptionText}}" title="{{item.activity.descriptionText}}">
</td>
<td>{{ item.publishDate == '' ? "" : (item.publishDate | date : "yyyy-MM-dd hh:mm") }}</td>
<td>{{ item.startDate | date : "yyyy-MM-dd hh:mm" }}</td>
<td>{{ item.name }}</td>
<td></td>
<td class="align-right buttons">
<button data-ng-click="vm.viewEducation(item.id)" class="btn btn-default btn-xs btn-outline">
Show
</button>
</td>
</tr>
</tbody>
<tfoot>
<tr>
<td colspan="5">
<ul class="pagination pull-right"></ul>
</td>
</tr>
</tfoot>
</table>
我已经在config.js文件中包含了正确的js,并且我没有在控制器中加载任何东西。