Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(paginator): Ability to change page size appearance #20349

Closed
mrmokwa opened this issue Aug 18, 2020 · 4 comments
Closed

feat(paginator): Ability to change page size appearance #20349

mrmokwa opened this issue Aug 18, 2020 · 4 comments
Labels
feature This issue represents a new feature or feature request rather than a bug or bug fix needs triage This issue needs to be triaged by the team

Comments

@mrmokwa
Copy link

mrmokwa commented Aug 18, 2020

Feature Description

Ability yo customize the appearance (MatFormFieldAppearance) of paginator page size options.

<mat-paginator appearance="standard">

Use Case

If you set a default appearance with MatFormFieldDefaultOptions, this will reflect to paginator, and there's no way to set it manualy back to default.

Observations

It will be really nice if we could have it in MatPaginatorDefaultOptions also.
So we could do this to override the appearance for paginator.

providers: [
   {
      provide: MAT_FORM_FIELD_DEFAULT_OPTIONS,
      useValue: { appearance: 'outline' },
   },
   {
      provide: MAT_PAGINATOR_DEFAULT_OPTIONS,
      useValue: { appearance: 'standard' },
   },
],
@mrmokwa mrmokwa added feature This issue represents a new feature or feature request rather than a bug or bug fix needs triage This issue needs to be triaged by the team labels Aug 18, 2020
@mrmokwa
Copy link
Author

mrmokwa commented Aug 18, 2020

Ref #13907

@jelbourn
Copy link
Member

Duplicate of #13907

@jelbourn jelbourn marked this as a duplicate of #13907 Aug 20, 2020
@mrmokwa
Copy link
Author

mrmokwa commented Aug 21, 2020

@jelbourn I don't agree with closing this issue, IMO #13907 is related to fixing the styles (bug), while this one is related to adding an ability to configure different appearences.

@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Sep 21, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
feature This issue represents a new feature or feature request rather than a bug or bug fix needs triage This issue needs to be triaged by the team
Projects
None yet
Development

No branches or pull requests

2 participants