Updated comments.

This commit is contained in:
Michael Spalti
2022-09-20 17:17:15 -07:00
parent 4d43a34cb3
commit 5a815da5f2
2 changed files with 6 additions and 4 deletions

View File

@@ -25,6 +25,7 @@ export class CommunityPageSubCollectionListComponent implements OnInit, OnDestro
/** /**
* Optional page size. Overrides communityList.pageSize configuration for this component. * Optional page size. Overrides communityList.pageSize configuration for this component.
* Value can be added in the themed version of the parent component.
*/ */
@Input() pageSize: number; @Input() pageSize: number;
@@ -56,8 +57,8 @@ export class CommunityPageSubCollectionListComponent implements OnInit, OnDestro
ngOnInit(): void { ngOnInit(): void {
this.config = new PaginationComponentOptions(); this.config = new PaginationComponentOptions();
this.config.id = this.pageId; this.config.id = this.pageId;
if(hasValue(this.pageSize)) { if (hasValue(this.pageSize)) {
this.config.pageSize = this.pageSize this.config.pageSize = this.pageSize;
} }
this.config.currentPage = 1; this.config.currentPage = 1;
this.sortConfig = new SortOptions('dc.title', SortDirection.ASC); this.sortConfig = new SortOptions('dc.title', SortDirection.ASC);

View File

@@ -28,6 +28,7 @@ export class CommunityPageSubCommunityListComponent implements OnInit, OnDestroy
/** /**
* Optional page size. Overrides communityList.pageSize configuration for this component. * Optional page size. Overrides communityList.pageSize configuration for this component.
* Value can be added in the themed version of the parent component.
*/ */
@Input() pageSize: number; @Input() pageSize: number;
@@ -59,8 +60,8 @@ export class CommunityPageSubCommunityListComponent implements OnInit, OnDestroy
ngOnInit(): void { ngOnInit(): void {
this.config = new PaginationComponentOptions(); this.config = new PaginationComponentOptions();
this.config.id = this.pageId; this.config.id = this.pageId;
if(hasValue(this.pageSize)) { if (hasValue(this.pageSize)) {
this.config.pageSize = this.pageSize this.config.pageSize = this.pageSize;
} }
this.config.currentPage = 1; this.config.currentPage = 1;
this.sortConfig = new SortOptions('dc.title', SortDirection.ASC); this.sortConfig = new SortOptions('dc.title', SortDirection.ASC);