-
Notifications
You must be signed in to change notification settings - Fork 6.7k
[Proposal] Datepicker directive #366
Comments
Hi bekos,
And a more general question. Do you plan to put this directive into popover? |
Hello @jhiemer and thank you for the time spent on this one. Firstly this is not a PR, just an initial draft to see reactions before proceeding :-)
This directive displays inline of the parent's context. If you place it inside the body of a popover then it will display on the opening of the popover. In the same way you can display it and as body of a dropdown. |
Hi @bekos ,
What do you think?
|
@bekos wow, this looks amazing! Holly cow, I can't believe it is all < 200 LOC. And even less if you extract a template. And if you extract a template it becomes fully customizable. This is truly amazing, I knew that we are going to get here but still it is incredible to see this happening. I must say that this is the first fully customizable date picker I've ever seen (!). Awesome job! |
@jhiemer Good idea. Probably we can provide some default @pkozlowski-opensource Thank you! and I hope you have seen enough date pickers :-) |
Yay Tasos! You rock :-) This looks awesome 👯 🍻 💯 |
Thank you very much Andy! 🎸 ✌️ 🍰 |
Updated example. Added I guess, I shall open a PR now. |
@bekos that's the reason I was using moment.js in my implementation. The thing is, in any case we want to support localisation, we have to options
As much as I appreciate the abandonment of jQuery and co. the question for me here is, if moment.js could not be a suitable exception, reducing the amount of additionally required code. |
@jhiemer AngularJS already supports localization and datepicker itself uses date |
@bekos thanks, did not know that up to now. Everyday I learn something new... :-) |
Thx @mikehaas763 :-) Right now I'm trying to write the tests, fix bug with week numbering and make it a bit more optimized by not watching many things & using less scope functions in the template. I hope to make a PR in the next days. A code review & testing will be very much appreciated! |
After submitting this one ( #358 ) I thought I would be half job done without this directive :)
Please have a look at: http://plnkr.co/edit/hYWDccX8fIeWSeg3LA5I?p=preview
The text was updated successfully, but these errors were encountered: