mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
[ADF-2157] Infinite pagination target supporting (#2856)
* Infinite pagination target supporting * Updating documentation
This commit is contained in:
committed by
Eugenio Romano
parent
d189567853
commit
89a7b0c4b0
@@ -27,7 +27,7 @@ import { TranslateLoaderService } from '../services/translate-loader.service';
|
||||
import { TranslationService } from '../services/translation.service';
|
||||
import { PaginationComponent } from './pagination.component';
|
||||
import { PaginatedComponent } from './public-api';
|
||||
import { Subject } from 'rxjs/Subject';
|
||||
import { BehaviorSubject } from 'rxjs/BehaviorSubject';
|
||||
|
||||
class FakePaginationInput implements Pagination {
|
||||
count: number = 25;
|
||||
@@ -279,7 +279,7 @@ describe('PaginationComponent', () => {
|
||||
const pagination: Pagination = {};
|
||||
|
||||
const customComponent = <PaginatedComponent> {
|
||||
pagination: new Subject<Pagination>()
|
||||
pagination: new BehaviorSubject<Pagination>({})
|
||||
};
|
||||
|
||||
component.target = customComponent;
|
||||
@@ -294,7 +294,7 @@ describe('PaginationComponent', () => {
|
||||
const pagination2: Pagination = {};
|
||||
|
||||
const customComponent = <PaginatedComponent> {
|
||||
pagination: new Subject<Pagination>()
|
||||
pagination: new BehaviorSubject<Pagination>({})
|
||||
};
|
||||
|
||||
component.target = customComponent;
|
||||
@@ -309,7 +309,7 @@ describe('PaginationComponent', () => {
|
||||
|
||||
it('should send pagination event to paginated component', () => {
|
||||
const customComponent = <PaginatedComponent> {
|
||||
pagination: new Subject<Pagination>(),
|
||||
pagination: new BehaviorSubject<Pagination>({}),
|
||||
updatePagination() {},
|
||||
supportedPageSizes: []
|
||||
};
|
||||
|
Reference in New Issue
Block a user