Monday, June 3, 2024
 Popular · Latest · Hot · Upcoming
33
rated 0 times [  39] [ 6]  / answers: 1 / hits: 7776  / 10 Years ago, sun, june 29, 2014, 12:00:00

I'm trying to implement Footable, a JQuery plugin used to make tables responsive. There is an add-on for Footable to add pagination. [Demo]



And (http://fooplugins.com/footable/demos/paging.htm) for using the pagination add-on. I tried following this demo but my pagination came up as a vertical un-ordered list. The buttons are functional but unsightly. Here is a link images which i can not post here because my repuation is not high enough.



Here is my code for the table:



<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>

More From » jquery

 Answers
6

Your footer should look something like this:



<tfoot class=hide-if-no-paging>
<tr>
<td colspan=5 class=text-center>
<ul class=pagination>
</ul>
</td>
</tr>
</tfoot>


You can tell, that's different that what it says in the demo. This link showed me the difference https://github.com/bradvin/FooTable/issues/136.



Here's a plunk to demonstrate the issue: http://plnkr.co/edit/8Yyk8NN8rsqdXtrvJDOM


[#44247] Friday, June 27, 2014, 10 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
carolynt

Total Points: 252
Total Questions: 98
Total Answers: 109

Location: French Southern and Antarctic Lands
Member since Sat, Oct 31, 2020
4 Years ago
;