From 5e25f15dab7335bbc68e0c37ccbe02c467711b67 Mon Sep 17 00:00:00 2001 From: Aimen SIJOUMI Date: Fri, 15 Nov 2019 06:51:22 +0100 Subject: [PATCH] add text buttons to variables (to be translated in other languages) --- src/jw-pagination.component.ts | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/src/jw-pagination.component.ts b/src/jw-pagination.component.ts index f8ccb40..d357468 100644 --- a/src/jw-pagination.component.ts +++ b/src/jw-pagination.component.ts @@ -7,19 +7,19 @@ import paginate = require('jw-paginate'); selector: 'jw-pagination', template: `` }) @@ -30,6 +30,10 @@ export class JwPaginationComponent implements OnInit, OnChanges { @Input() initialPage = 1; @Input() pageSize = 10; @Input() maxPages = 10; + @Input() firstItemButton = "First"; + @Input() previousItemButton = "Previous"; + @Input() nextItemButton = "Next"; + @Input() lastItemButton = "Last"; pager: any = {}; @@ -57,4 +61,4 @@ export class JwPaginationComponent implements OnInit, OnChanges { // call change page function in parent component this.changePage.emit(pageOfItems); } -} \ No newline at end of file +}