-
Notifications
You must be signed in to change notification settings - Fork 6.7k
ui datepicker events, on selection of a date #639
Comments
@joshuawoodward There is already an issue that proposes plugging into the For now, I think you can |
I get; I have a calendar that is hidden, user clicks icon to show calendar, when date is selected i want to hide calendar again (I'm using ui.bootstrap.collapse) |
Is this your case? http://plnkr.co/edit/xDv2oDLD8mCLZErn34Rc?p=preview |
Yes, except that your example is working ;) |
Something else is causing your error then! |
http://plnkr.co/edit/T9eISAXlWtT9JdL6KvZp?p=preview nested collapses? multiple date pickers? |
The problem is caused by the nested collapses. If you want, you can replace the Except that you lose your fancy collapse, everything seems to wok without errors. |
There is already the #612 to use Your errors are caused from nested collapses, so it is better to open a new issue if this still bothers you. |
👍 Recommend adding the collapse/hide sample to the demo page. |
A problem with this $watch method, for me, is that it fires when the page loads. http://embed.plnkr.co/4MgBJz/preview |
@getsetbro You can now use |
Sorry for reviving this issue, but it would be nice to have this in the docs! |
second the idea of updating the docs. |
I was hoping for a similar attribute out of the box to run a callback on date change. A simple solution I discovered was the following:
Others may require some more complex, but this was enough for me. I prefer this over |
can we add some functionality to the scope.select, like an attribute date-select="onSelect()"
I would to perform an action when a date is selected
The text was updated successfully, but these errors were encountered: