restorando / angular-pickadate

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

Added class 'pickadate-another-month' #53

Open jlsalvador opened 9 years ago

gschammah commented 9 years ago

Hi @jlsalvador

What is this PR about? the class you are adding is not including in the css

jlsalvador commented 9 years ago

Hello @gschammah

On our website we need to add a new class to differ the days between the months. So... I added the new class.

Before: image

After: image

If you like, I can add "pickadate-another-month" to the CSS provided by angular-pickadate with a lighter gray color, like a demo.

chmartinez commented 9 years ago

+1 to this. And since the module structure changed, you need to add the new class using the new "date" object: if (date.date.getMonth() !== scope.currentDate.getMonth()) date.classNames.push('pickadate-another-month');