django-endless-pagination icon indicating copy to clipboard operation
django-endless-pagination copied to clipboard

Loading within table

Open GreatWizard opened this issue 11 years ago • 2 comments

Thanks to the issue #54, I have implemented a templatetag show_more_table which works like show_more within HTML table.

Small demo:
{% load endless %}

{% paginate 5 objects %}
<table>
  <thead>
    <tr>
      <th>Title</th>
      <th>Content</th>
    </tr>
  </thead>
  <tbody>
  {% for object in objects %}
    <tr>
      <td>{{ object.title }}</td>
      <td>{{ object.contents }}</td>
    </tr>
  {% endfor %}
  {% show_more_table "More results" %}
  </tbody>
</table>

GreatWizard avatar Nov 24 '14 21:11 GreatWizard

Thanks for working code! I was triyng to make endless paginaton work at least a week! With your templatetag all works like a charm

weareua avatar Jun 20 '15 17:06 weareua

@GreatWizard - Thanks for this fix

NPann avatar Oct 07 '15 07:10 NPann