restorando / angular-pickadate

A simple and fluid inline datepicker for AngularJS with no extra dependencies.
MIT License
273 stars 91 forks source link

show certain days as events #65

Open harsh-vardhhan opened 9 years ago

harsh-vardhhan commented 9 years ago

How can I show certain days as highlighted

chmartinez commented 9 years ago

I would suggest you do something similar to the disabled dates functionality, and instead of adding the "disabled" class to the date, add an "special-day" class. Here: https://github.com/chmartinez/angular-pickadate. Take a look and tell me if it fits your needs. Hope it helps!

sbluday commented 7 years ago

@chmartinez Your fork doesn't adding the special-day class

sbluday commented 7 years ago

@chmartinez Worked in non-minified version. Weird. Idk. Have to check.

mpospelov commented 7 years ago

Hello.

I created the functionality suitable for this case https://github.com/mpospelov/angular-pickadate/commit/45041e24cb43991f8deedafbf9fb950861cda8d5

Here you can check the commit. I can create PR if you want.

It's just allows to put custom function which will accept a day and return the array of classes. Check the tests for more details

chmartinez commented 7 years ago

+1. Waay cleaner than my version. Thanks @mpospelov