-
Notifications
You must be signed in to change notification settings - Fork 1.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): add listening to the change of month property #1153
Comments
nice use case description! |
have any one find solution for month change using next & previous arrow event? |
Any position on this? |
Need it really hard :( |
Is it still open? If yes, would like to work on this if that's okay. |
@goku321 cool! |
Any progress here? |
Any updates on this topic? |
Any progress on this? |
As for me - I had to switch my datepicker to ng-bootstrap, unfortunately I had no time to wait until it is implemented here... |
IN TEMPLATE
IN COMPONENT
|
No, this does not work when the user clicks the month navigation control to move forward (or backward) |
I would very much like to see this implemented as well. |
I solved it by subscribing to its internal store. When the view was changed to another month you will get the date of the view accordingly. Add this utils class to your project
|
Navigating through the datepicker calendar will emit a bsViewChange event. Closes valor-software#1153
Navigating through the datepicker calendar will emit a bsViewChange event. Closes valor-software#1153
@Devoney solution is great but It will be triggered on any change event, not only month change event To only trigger month change event
Edit: Code improvements used lastKnowViewDate |
Thanks to @mstojevski & @Devoney solutions which are working for me. But there is an issue that when I want to set one of ngx-bootstrap: v10.2.0 |
Until the issue is resolved there is another way which worked better for me.
|
Is there a way, how to listen to the change of the month property of datepicker? I need to send a request to the server in order to load a new set of disabled dates. Than I need to disable the dates in datepicker before it loads.
The text was updated successfully, but these errors were encountered: