mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-07 18:14:17 +00:00
Updated comments.
This commit is contained in:
@@ -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);
|
||||||
|
@@ -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);
|
||||||
|
Reference in New Issue
Block a user