1
Im mit FullCalendar in eckigen js. Ich habe einen Titel und füge am Ende des Titels etwas Text an. Ist es möglich, HTML zu verwenden, damit ich den angehängten Text rot machen kann? Hier ist der Code:Hinzufügen von HTML zu Vollkalender
if(isIn){
var desc = apnts[i].Ref + ' ' + apnts[i].Company + ' : ' + apnts[i].username;
if(apnts[i].Status != 'Fresh' && apnts[i].Status != '' && apnts[i].Status != 'undefined' && apnts[i].Status != undefined && apnts[i].Status != '0'){
desc = desc + " - " + apnts[i].Status;
}
$scope.jsonEvents.push({
color: apnts[i].colorcode,
textColor: 'white',
id: 1,
isCore: false,
isComplete: Math.round(Math.random()),
isOverdue: false,
tooltip: '',
title: desc,
description: '',
start: new Date(y, m, d, h, min),
end: new Date(y, m, d, finHour, min),
allDay: false,
ref: apnts[i].Ref
});
}
So all the text is white, but I want this line to be red :
desc = desc + " - " + apnts[i].Status;
Ist das möglich?