-
Notifications
You must be signed in to change notification settings - Fork 6.8k
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(material/paginator): add input for configuring the underlying select #13705
feat(material/paginator): add input for configuring the underlying select #13705
Conversation
Hi @crisbeto! This PR has merge conflicts due to recent upstream merges. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since it's somewhat related- I had been thinking we might want to change the paginator to use a native <select>
by default (with the mat-select
being an alternative gated by a different selector). Any thoughts on that approach?
I'm not sure I see very many advantages to that, aside from the accessibility, since the select most likely won't have very many options and we'll need to bring in the |
36e0b22
to
7531096
Compare
Theoretically the |
The module would have to be added to the |
Want to run an experiment to see? It would basically be taking an empty CLI app, and then comparing the main bundle size after adding a paginator as it is now, and then alternatively a paginator using the native select. |
7531096
to
a8f5c3e
Compare
a8f5c3e
to
9392223
Compare
9392223
to
7872a1d
Compare
7872a1d
to
191d116
Compare
191d116
to
5458aee
Compare
Hello @crisbeto ! |
5458aee
to
1b98431
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, this would be really useful to a lot of people who need to customize their paginators.
The current pageSize will always appear in the dropdown, even if it is not included in | ||
pageSizeOptions. | ||
|
||
If you want to customize some of the optional of the `mat-select` inside the `mat-paginator`, you |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If you want to customize some of the optional of the `mat-select` inside the `mat-paginator`, you | |
If you want to customize some of the options of the `mat-select` inside the `mat-paginator`, you |
Hi Guys is there a reason why this pr was not merged? Are there some concerns? |
1b98431
to
9728cb3
Compare
9728cb3
to
bcc98fb
Compare
…lect Since we hide the underlying `MatSelect` inside the `MatPaginator`, the user doesn't have the ability to configure some of the inputs. These changes introduce an input that proxy some of the supported properties to the select. Fixes angular#13646.
bcc98fb
to
64ff1c4
Compare
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
Since we hide the underlying
MatSelect
inside theMatPaginator
, the user doesn't have the ability to configure some of the inputs. These changes introduce an input that proxy some of the supported properties to the select.Fixes #13646.