Open fathed opened 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), }]
msgtype replace color. The color name will be the background color. or you do not want that?
I finally figured it out; thanks.
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), }]