Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Listen to next and previous button clicks of mat-datepicker with out custom header #25172

skota524 started this conversation in Ideas
Discussion options

feature request or proposal:
mat-datepicker is really doing great job, but i would like to have a feature where we can listen to next and previous button clicks.

What is the expected behavior?

Emit those events from calendar header and from date picker so that we can listen from our component.

calendar-header > emit > date picker > emit > user component

What is the current behavior?

Need to override the calendar-header just for one functionality

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

On date change, we need to do some validations and apply style to the dates.

You must be logged in to vote

Replies: 5 comments

Comment options

Any updates for this feature?

You must be logged in to vote
0 replies
Comment options

Currently, we found two ways to handle in manually. @skota524 maybe it may help you
1 - Subscribe to the next/previous header buttons click
querySelector
2 - Update needed styles using Subject +distinctUntilChanged()
image

You must be logged in to vote
0 replies
Comment options

Just a heads up that we kicked off a community voting process for your feature request. There are 20 days until the voting process ends.

Find more details about Angular's feature request process in our documentation.

You must be logged in to vote
0 replies
Comment options

Thank you for submitting your feature request! Looks like during the polling process it didn't collect a sufficient number of votes to move to the next stage.

We want to keep Angular rich and ergonomic and at the same time be mindful about its scope and learning journey. If you think your request could live outside Angular's scope, we'd encourage you to collaborate with the community on publishing it as an open source package.

You can find more details about the feature request process in our documentation.

You must be logged in to vote
0 replies
Comment options

Hello, this feature is not in our roadmap, but it is still open for discussion.

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Ideas
Labels
feature This issue represents a new feature or feature request rather than a bug or bug fix P5 The team acknowledges the request but does not plan to address it, it remains open for discussion area: material/datepicker
Converted from issue

This discussion was converted from issue #13756 on June 27, 2022 18:18.

AltStyle によって変換されたページ (->オリジナル) /