65600: ComCol-Tree load more links message, not yet functional

This commit is contained in:
Marie Verdonck
2019-10-15 12:42:37 +02:00
parent f4686ea6cf
commit c99b6adb31
4 changed files with 102 additions and 21 deletions

View File

@@ -28,7 +28,13 @@ export class CommunityListComponent implements OnInit {
this.dataSource.loadCommunities(null);
}
hasChild = (_: number, node: FlatNode) => node.isExpandable;
hasChild(_: number, node: FlatNode) {
return node.isExpandable;
}
isShowMore(_: number, node: FlatNode) {
return node.isShowMoreNode;
}
shouldRender(node: FlatNode) {
const parent = node.parent;
@@ -54,4 +60,9 @@ export class CommunityListComponent implements OnInit {
return getCommunityPageRoute(node.id);
}
getNextPage(): void {
console.log('go to next page');
// TODO
}
}