为什么Footable分页无法正确呈现?

Son*_*ock 4 javascript jquery pagination angularjs footable

我正在尝试实现Footable,一个用于使表响应的JQuery插件.Footable有一个附加组件可以添加分页.[演示]

和(http://fooplugins.com/footable/demos/paging.htm)使用分页插件.我尝试过这个演示,但我的分页是一个垂直的无序列表.按钮功能但难看.是一个链接图像,我不能在这里发布,因为我的回复不够高.

这是我的表代码:

<table class="table table-hover" ng-show='form.length>0' data-page-navigation=".pagination">
    <thead>
        <th ng-repeat="(key, formAttr) in form | orderBy:'attributes.order'" >{{formAttr.attributes.name}}<br/>({{formAttr.type}})</th>
        <th>Submission Time</th>
    </thead>
    <tbody>
        <tr ng-repeat="(key, response) in formResponses">
            <td ng-repeat="(key, formAttr) in form | orderBy:'attributes.order'">{{$parent.response.results[formAttr.att_id]}}</td>
            <td>{{response.submission_time}}</td>
        </tr>
    </tbody>
    <tfoot class="">
        <tr>
            <td colspan="5">
                <div class="pagination pagination-centered"></div>
            </td>
        </tr>
    </tfoot>
</table>
Run Code Online (Sandbox Code Playgroud)

Jef*_*eff 11

你的页脚应该是这样的:

<tfoot class="hide-if-no-paging">
  <tr>
    <td colspan="5" class="text-center">
        <ul class="pagination">
        </ul>
    </td>
  </tr>
</tfoot>
Run Code Online (Sandbox Code Playgroud)

你可以说,它与演示中的内容有所不同.这个链接向我展示了差异https://github.com/bradvin/FooTable/issues/136.

这是一个证明问题的插图:http://plnkr.co/edit/8Yyk8NN8rsqdXtrvJDOM