[6a3a178] | 1 | /**
|
---|
| 2 | * @license
|
---|
| 3 | * Copyright Google LLC All Rights Reserved.
|
---|
| 4 | *
|
---|
| 5 | * Use of this source code is governed by an MIT-style license that can be
|
---|
| 6 | * found in the LICENSE file at https://angular.io/license
|
---|
| 7 | */
|
---|
| 8 | import { Optional } from '@angular/core';
|
---|
| 9 | import { Subject } from 'rxjs';
|
---|
| 10 | /**
|
---|
| 11 | * To modify the labels and text displayed, create a new instance of MatPaginatorIntl and
|
---|
| 12 | * include it in a custom provider
|
---|
| 13 | */
|
---|
| 14 | export declare class MatPaginatorIntl {
|
---|
| 15 | /**
|
---|
| 16 | * Stream to emit from when labels are changed. Use this to notify components when the labels have
|
---|
| 17 | * changed after initialization.
|
---|
| 18 | */
|
---|
| 19 | readonly changes: Subject<void>;
|
---|
| 20 | /** A label for the page size selector. */
|
---|
| 21 | itemsPerPageLabel: string;
|
---|
| 22 | /** A label for the button that increments the current page. */
|
---|
| 23 | nextPageLabel: string;
|
---|
| 24 | /** A label for the button that decrements the current page. */
|
---|
| 25 | previousPageLabel: string;
|
---|
| 26 | /** A label for the button that moves to the first page. */
|
---|
| 27 | firstPageLabel: string;
|
---|
| 28 | /** A label for the button that moves to the last page. */
|
---|
| 29 | lastPageLabel: string;
|
---|
| 30 | /** A label for the range of items within the current page and the length of the whole list. */
|
---|
| 31 | getRangeLabel: (page: number, pageSize: number, length: number) => string;
|
---|
| 32 | }
|
---|
| 33 | /** @docs-private */
|
---|
| 34 | export declare function MAT_PAGINATOR_INTL_PROVIDER_FACTORY(parentIntl: MatPaginatorIntl): MatPaginatorIntl;
|
---|
| 35 | /** @docs-private */
|
---|
| 36 | export declare const MAT_PAGINATOR_INTL_PROVIDER: {
|
---|
| 37 | provide: typeof MatPaginatorIntl;
|
---|
| 38 | deps: Optional[][];
|
---|
| 39 | useFactory: typeof MAT_PAGINATOR_INTL_PROVIDER_FACTORY;
|
---|
| 40 | };
|
---|