File tree Expand file tree Collapse file tree 3 files changed +12
-2
lines changed
projects/igniteui-angular/src/lib Expand file tree Collapse file tree 3 files changed +12
-2
lines changed Original file line number Diff line number Diff line change 11export interface IPaginatorResourceStrings {
22 igx_paginator_label ?: string ;
3+ igx_paginator_pager_text ?: string ;
34}
45
56export const PaginatorResourceStringsEN : IPaginatorResourceStrings = {
6- igx_paginator_label : 'Items per page'
7+ igx_paginator_label : 'Items per page' ,
8+ igx_paginator_pager_text : 'of'
79} ;
Original file line number Diff line number Diff line change 1818 </ button >
1919 < div class ='igx-paginator__pager-text '>
2020 < span > {{ page + 1 }}</ span >
21- < span > of </ span >
21+ < span > {{prepositionPage}} </ span >
2222 < span > {{ totalPages }}</ span >
2323 </ div >
2424 < button [disabled] ="isLastPage || !pagerEnabled ? true: false " (click) ="nextPage() " igxRipple igxRippleCentered ="true " igxButton ="icon ">
Original file line number Diff line number Diff line change @@ -169,6 +169,14 @@ export class IgxPaginatorComponent extends DisplayDensityBase {
169169 @Input ( )
170170 public selectLabel = CurrentResourceStrings . PaginatorResStrings . igx_paginator_label ;
171171
172+ /**
173+ * An @Input property, sets a preposition between the current page and total pages.
174+ * The default is 'of' localized string.
175+ * @memberof IgxPaginatorComponent
176+ */
177+ @Input ( )
178+ public prepositionPage = CurrentResourceStrings . PaginatorResStrings . igx_paginator_pager_text ;
179+
172180 /**
173181 * An event that is emitted when the select in the `IgxPaginatorComponent` changes its value.
174182 */
You can’t perform that action at this time.
0 commit comments