uxsolutions / bootstrap-datepicker

A datepicker for twitter bootstrap (@twbs)
Apache License 2.0
12.67k stars 6.06k forks source link

is it possible to apply differenct class to disabled date? #2261

Open ljdhameliya opened 7 years ago

ljdhameliya commented 7 years ago

currently when i set disabled date that color class like gray but we need to something like disabled date and apply different class for different date disabled.

datesDisabled : []// date array

for some date i need to set red color or for some date green is it possible? thanks in advance.

Datepicker for Bootstrap v1.5.0

ocdunlap commented 7 years ago

The colors are set in the CSS. So if you want to change it, you can go in and edit that (or preferably, make a copy of it and edit that version so that you will have the original one to reference). Look for the properties marked with the disabled selector.

I believe you can also use the "beforeShowDay" option to change the colors of individual days (see this example). Maybe this is more what you need?