tweaks to the object lists

This commit is contained in:
Art Lowel
2017-06-20 14:27:35 +02:00
parent 429d4a8937
commit b04b103207
5 changed files with 21 additions and 6 deletions

View File

@@ -342,5 +342,13 @@ export class PaginationComponent implements OnDestroy, OnInit {
throw new Error("Paginate: Argument is missing the following required properties: " + missing.join(', '));
}
}
get hasMultiplePages(): boolean {
return this.collectionSize > this.pageSize;
}
get shouldShowBottomPager(): boolean {
return this.hasMultiplePages || !this.hidePagerWhenSinglePage
}
}