Paul-DS / bootstrap-year-calendar

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

Add custom class to a day #192

Open fathed opened 6 years ago

fathed commented 6 years ago

Is it possible to add a custom class to a day from dataSource? I want msgtype value to be added as a class to the rendered day.

Basically, I want to add a custom class to a day without using a date.

Examle: dataSource: [{ id: 0, name: 'Google I/O', msgtype: "background", location: 'San Francisco, CA', startDate: new Date(currentYear, 0, 1), endDate: new Date(currentYear, 0, 1), }, { id: 1, name: 'Google I/O', msgtype: "nope", location: 'San Francisco, CA', startDate: new Date(currentYear, 3, 28), endDate: new Date(currentYear, 3, 28), }]

pelach commented 6 years ago

msgtype replace color. The color name will be the background color. or you do not want that?

fathed commented 6 years ago

I finally figured it out; thanks.