mirror of https://github.com/freeCodeCamp/devdocs
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
485 B
23 lines
485 B
//= require views/list/paginated_list
|
|
|
|
app.views.EntryList = class EntryList extends app.views.PaginatedList {
|
|
static tagName = "div";
|
|
static className = "_list _list-sub";
|
|
|
|
constructor(entries) {
|
|
super(...arguments);
|
|
this.entries = entries;
|
|
this.init0(); // needs this.data from PaginatedList
|
|
this.refreshElements();
|
|
}
|
|
|
|
init0() {
|
|
this.renderPaginated();
|
|
this.activate();
|
|
}
|
|
|
|
render(entries) {
|
|
return this.tmpl("sidebarEntry", entries);
|
|
}
|
|
};
|