Hi experts,
I've trying to set the colour/type of the calendar legend item. However, I still have yet to find a way to do this.
In the unified calendar, I am able to set the type which will determined the colour of the highlight in the calendar for my special days like below.
oCal1.addSpecialDate(new sap.ui.unified.DateTypeRange({
startDate: new Date(beginLeaveSubDate),
endDate: new Date(endLeaveSubDate),
type: sType,
........
}));
this is how i create a calendar legend item:
oLeg1.addItem(new sap.ui.unified.CalendarLegendItem({
text: "Public Holiday"
}));
Is it possible to set the type/colour of the legend as per my calendar as well?
Thank you, your help and input are very much appreciated!
Best regards,
Amanda