forked from hazza/dspace-angular
44239: pagination optimizations
This commit is contained in:
@@ -52,6 +52,8 @@ export class ObjectListComponent implements OnChanges, OnInit {
|
||||
*/
|
||||
@Output() sortDirectionChange: EventEmitter<SortDirection> = new EventEmitter<SortDirection>();
|
||||
|
||||
@Output() paginationChange: EventEmitter<SortDirection> = new EventEmitter<any>();
|
||||
|
||||
/**
|
||||
* An event fired when the sort field is changed.
|
||||
* Event's payload equals to the newly selected sort field.
|
||||
@@ -95,4 +97,8 @@ export class ObjectListComponent implements OnChanges, OnInit {
|
||||
this.sortFieldChange.emit(event);
|
||||
}
|
||||
|
||||
onPaginationChange(event) {
|
||||
this.paginationChange.emit(event);
|
||||
}
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user