You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, I'm facing this problem:
I setup the pagination variables, and all look fantastic, until I click in the arrows, when I click, the page changes but the display content don't.
<h3><spanclass="label label-info">Exámenes calificados</span></h3>
<divclass="well well-lg">
<divstyle="overflow-x:auto;">
<table>
<tr>
<th>Título</th>
<th>Fecha de aplicación</th>
<th>Calificación</th>
<th>Vigencia</th>
</tr>
{{#eachcalificadosas |answer|}}
<tr>
<td>{{answer.report.copy_test.title}}</td>
<td> {{moment-formatanswer.presented_at'ddd DD-MMMM-YYYY''YYYY-MM-DD'}}</td>
<td> {{answer.score}}</td>
<td> {{moment-formatanswer.expiration_date'ddd DD-MMMM-YYYY''YYYY-MM-DD'}}</td>
</tr>
{{else}}
Lo sentimos aún no hay exámenes calificados.
{{/each}}
</table>
</div>
{{#if (gtcalificados.totalPages1)}}
<divclass="pager">
{{page-numberscontent=calificados}}
</div>
{{/if}}
</div><h3><spanclass="label label-info">Exámenes con Calificación pendiente</span></h3>
<divclass="well well-lg">
<divstyle="overflow-x:auto;">
<table>
<tr>
<th>Título</th>
<th>Fecha de aplicación</th>
<th>Calificación</th>
<th></th>
</tr>
{{#eachnocalificadosas |answer|}}
<tr>
<td>{{answer.report.copy_test.title}}</td>
<td> {{moment-formatanswer.presented_at'ddd DD-MMMM-YYYY''YYYY-MM-DD'}}</td>
<td> Pendiente</td>
</tr>
{{else}}
Aún no hay exámenes con calificación pendiente.
{{/each}}
</table>
</div>
{{#if (gtpagedContent.totalPages1)}}
<divclass="pager">
{{page-numberscontent=nocalificadoscurrentPage=pageNoCalif}}
</div>
{{/if}}
</div>
I really don't know whats happening, any clue?
Is this a BUG?
I'm using:
DEBUG: Ember : 2.9.1
DEBUG: Ember Data : 2.12.1
DEBUG: jQuery : 3.1.1
The text was updated successfully, but these errors were encountered:
shiro-saber
changed the title
{{page-numbers}} is not changing display data.
(Possible BUG) {{page-numbers}} is not changing display data.
Apr 17, 2017
@shiro-saber - I'm seeing a similar issue. Any resolution here?
Basically my first page renders fine, but my 2nd page isn't rendered. Then if I click back to the first page, for a split-second it shows the content that should have been displayed from the 2nd page.
@shiro-saber - I just fixed it actually. I just had to use the content property of the Component and stopped using the pagedArray constructor. To manipulate the page-numbers component now, I used: {{page-numbers content=content currentPage=page perPage=perPage totalPages=totalPages}}
As long as they're set explicitly there, you can bypass the need to set the page data on an object or anything.
tl;dr - set all the page variables on the component, then pass them through to page-numbers explicitly!
Hello, I'm facing this problem:
I setup the pagination variables, and all look fantastic, until I click in the arrows, when I click, the page changes but the display content don't.
I have the next code:
Controller
Component view
I really don't know whats happening, any clue?
Is this a BUG?
I'm using:
The text was updated successfully, but these errors were encountered: