configurable 'supportedPageSizes' for document list (#2395)

This commit is contained in:
Denys Vuika
2017-09-29 06:58:12 -04:00
committed by Eugenio Romano
parent f224c594c6
commit d789f84ed5
5 changed files with 9 additions and 2 deletions

View File

@@ -107,6 +107,9 @@ export class DocumentListComponent implements OnInit, OnChanges, AfterContentIni
@Input()
paginationStrategy: PaginationStrategy = PaginationStrategy.Finite;
@Input()
supportedPageSizes: number[];
infiniteLoading: boolean = false;
selection = new Array<MinimalNodeEntity>();
@@ -165,6 +168,7 @@ export class DocumentListComponent implements OnInit, OnChanges, AfterContentIni
private elementRef: ElementRef,
private apiService: AlfrescoApiService,
private appConfig: AppConfigService) {
this.supportedPageSizes = appConfig.get('document-list.supportedPageSizes', [5, 10, 15, 20]);
}
private get nodesApi() {