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

Emitting event when datepicker selection is done #733

Merged
merged 2 commits into from
Jul 14, 2016
Merged

Emitting event when datepicker selection is done #733

merged 2 commits into from
Jul 14, 2016

Conversation

orkisz
Copy link
Contributor

@orkisz orkisz commented Jul 14, 2016

Hi @valorkin,

In my project I need to have datepicker 'popup' functionality ASAP. I decided to add an event to datepicker which fires when date selection is done (picker reached minMode). Additionally, I don't want to use ngModel two way binding since it changes model value event when selection is not yet done (I want to select month, but I'm on a year view - clicking year changes model which is unacceptable for me). In this PR, I use selectionDone event to both receive selected date and as a signal to close datepicker popup.

This can be useful in #273

@valorkin
Copy link
Member

Ok, looks good
but just in case breaking change is coming :)

@valorkin valorkin merged commit 53c7fd1 into valor-software:development Jul 14, 2016
@valorkin
Copy link
Member

just in case, usually docs update is required :)

@orkisz
Copy link
Contributor Author

orkisz commented Jul 14, 2016

@valorkin I did not expect you will merge this PR so fast - of course next time I will update docs :)

@orkisz orkisz deleted the feature/selection-done-event branch July 14, 2016 12:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants