-
Notifications
You must be signed in to change notification settings - Fork 6.7k
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(datepicker): allow for the dropdown position to be customized #16698
feat(datepicker): allow for the dropdown position to be customized #16698
Conversation
605993f
to
659fb5a
Compare
const primaryY = this.yPosition === 'above' ? 'bottom' : 'top'; | ||
const secondaryY = primaryY === 'top' ? 'bottom' : 'top'; | ||
|
||
return strategy.withPositions([ |
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.
@crisbeto maybe you could allow to pass ConnectedPosition so any consumer had full controll if needed.
As sometimes its realy needed to add offsets or class to overlay
And lines 509-512 would go away
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.
Doing that feels like we'd give people the ability to shoot themselves in the foot since they could pass in a configuration that makes the datepicker harder to use.
659fb5a
to
e8c8187
Compare
77a3387
to
74a66bd
Compare
74a66bd
to
64992fd
Compare
64992fd
to
ccffcbb
Compare
@mmalerba I totally forgot about this PR. I've addressed your feedback from a few months ago. Can you take another look? |
Allows the consumer to customize the primary position of the datepicker in dropdown mode. Fixes angular#16550.
ccffcbb
to
7ae7919
Compare
…ngular#16698) Allows the consumer to customize the primary position of the datepicker in dropdown mode. Fixes angular#16550.
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. |
Allows the consumer to customize the primary position of the datepicker in dropdown mode.
Fixes #16550.