Skip to content

Paginator doesn't have an option to hide the pageSize value. #8359

@nicu-chiciuc

Description

@nicu-chiciuc

Bug, feature request, or proposal:

Feature request

What is the expected behavior?

mat-paginator component should allow the option to hide the pageSize.

What is the current behavior?

This cannot be done using the mat-paginator component or even the MatPaginatorIntl service.
The service allows to change the label on the left of the pageSize yet it doesn't have an option to completely hide it and the number.

capture

What is the use-case or motivation for changing an existing behavior?

It is desired to have a paginator with only 1 pageSize option so it is not necessary to show it.

Which versions of Angular, Material, OS, TypeScript, browsers are affected?

Angular Material 2.0.0-beta.12
Angular 4.4.4

But probably all other versions are affected.

Metadata

Metadata

Assignees

Labels

P4A relatively minor issue that is not relevant to core functionsfeatureThis issue represents a new feature or feature request rather than a bug or bug fixhelp wantedThe team would appreciate a PR from the community to address this issue

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions