mattlewis92 / angular-bootstrap-calendar

A port of the bootstrap calendar widget to AngularJS (no jQuery required!)
https://mattlewis92.github.io/angular-bootstrap-calendar/
MIT License
798 stars 369 forks source link

feat(week-view): 5 days semi-weeks #570

Closed azachar closed 7 years ago

azachar commented 7 years ago

Hello, I have implemented a new feature that allows you to show only part of the week. image

It would be great if you could help me to review the new code.

Also, I am not sure how to fix one failing test ( to be honest that view I do not need, so I left the investigation over). Perhaps you could have an idea how to fix it. I guess it would be for you super easy.

Anyway, thanks for your feedback!

Cheers, Andrej

mattlewis92 commented 7 years ago

Thanks this looks good! I don't have time to properly review it right now, however there are a couple of things I can see that you can work on now:

azachar commented 7 years ago

Hey @mattlewis92,

Thanks for your message.

ad 1) I need to somehow used this feature within my project, so until we merge this PR, will keep it there. (but yes I agree with you:)

ad 2) Sure, will remove it. (was there just temporary)

ad 3) calendar-utils support excluding, that is great, but it is a quite a messy to use it for this feature (initially I used but the algorithm to choose excluded days became very smelly). Since my feature is not about hiding, it is about making the calendar available on devices that have a small screen (like a mobile phone for instance). So one semi week of 3 days starts for example on T(uesday), then continue to W(ednesay) and finish up with F(riday). The next semi week is S,S,M, then T,W,F.. and still, it makes sense to filter out weekends.

So, I wound prefer to keep approaches transparent and not to reuse them. They have in my opinion different meanings. Do you see my point? And also, this should be in theory faster (instead of excluding, we are just iterating less days..)

Anyway, look forward hearing from you!

Cheers, Andrej

azachar commented 7 years ago

ad 2) removed :)

DarshanVelagaleti commented 7 years ago

can any one please help me to Hide Previous dates and after 60 days Dates on Calander

mattlewis92 commented 7 years ago

Sorry about the late reply on this one, I don't really work on angular 1.x stuff anymore. Thanks to the work by @santam85 this is now possible in 0.30.0 🎉