Paul-DS / bootstrap-year-calendar

[DEPRECATED] A fully customizable year calendar widget, for boostrap !
Apache License 2.0
293 stars 243 forks source link

div with data-provider attribute #199

Open rasool561 opened 6 years ago

rasool561 commented 6 years ago

and the javascript code is $('#calendar').calendar({ customDayRenderer: function (element, date) { if (date.getDay() == w1 || date.getDay() == w2) { $(element).css('color', 'red'); } } }); when I run the page the calendar is showing but the red color for the days are not working and when I replace the data-provider attribute in div with id like

the above javascript code is working I want to work with customDayRenderer and datasource and clickDay options Can any one suggest me the how to work