entry_list.js 485 B

12345678910111213141516171819202122
  1. //= require views/list/paginated_list
  2. app.views.EntryList = class EntryList extends app.views.PaginatedList {
  3. static tagName = "div";
  4. static className = "_list _list-sub";
  5. constructor(entries) {
  6. super(...arguments);
  7. this.entries = entries;
  8. this.init0(); // needs this.data from PaginatedList
  9. this.refreshElements();
  10. }
  11. init0() {
  12. this.renderPaginated();
  13. this.activate();
  14. }
  15. render(entries) {
  16. return this.tmpl("sidebarEntry", entries);
  17. }
  18. };