restorando / angular-pickadate

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

Add custom class parameter #64

Closed cedricdelpoux closed 9 years ago

cedricdelpoux commented 9 years ago

This PR add the possibility to add a custom class parameter to the pickadate directive. Users could customize the calendar.

Exemple :

<div pickadate custom-class="myCustomClass"></div>

Result :

<div class="pickadate myCustomClass" ...>...</div>

capture d ecran 2015-09-02 10 42 27

gschammah commented 9 years ago

hi @cedricdelpoux

Thanks for your PR. There are 2 ways of accomplishing what you need without the custom-class parameter.

1) Wrap the datepicker in a div with your custom classname 2) Check the branch #47. Is not finished yet, but it will allow you to create a custom template (probably what you need)

I prefer to add the ability of creating custom templates than adding custom classes.

Thanks a lot!