Hi!, do you know to change the color a special day but assign the
color on time?
I have a system where the user to custom the color, then the system
have to search the color that have to assign to it special day.
I try with this code.
function marcaDias(date)
{
var eventDates = {};
eventDates[ new Date( '11/12/2015' )] = new Date(
'11/12/2015' );
eventDates[ new Date( '11/10/2015' )] = new Date(
'11/10/2015' );
eventDates[ new Date( '11/09/2015' )] = new Date(
'11/09/2015' );
eventDates[ new Date( '11/02/2015' )] = new Date(
'11/02/2015' );
eventDates[ new Date( '10/02/2015' )] = new Date(
'10/02/2015' );
var highlight = eventDates[date];
if (highlight) {
return [true, 'specialDay']; //is a class
css i need some like as.... return [date, "background","pink"];
} else {
return [true, '', ''];
}
}