jfmdev / ngComboDatePicker

Angular directive to select dates using combo boxes
Mozilla Public License 2.0
23 stars 20 forks source link

Add classes to combo boxes support #19

Closed BlinkyBill182 closed 7 years ago

elad-n commented 7 years ago

COOL! I need this!

jfmdev commented 7 years ago

Hi Ben,

Thank you very much for your contribution (and sorry for the late response), however this feature is already implemented in the library (although is not as straightforward as your implementation): you must use the attributes ngAttrsDate, ngAttrsMonth and ngAttrsYear .

<ng-combo-date-picker 
    ng-model="myDate" 
    ng-attrs-date='{"class": "form-control"}' 
    ng-attrs-month='{"class": "form-control"}' 
    ng-attrs-year='{"class": "form-control"}'>
</ng-combo-date-picker>

So unfortunately I will not merge you pull request (since I want to keep the source code as simple as possible), but I will add an example showing how to set custom classes.

Regards