Skip to Content
May 16, 2018 at 11:32 AM

sapui5 sap.ui.unified.Calendar how to remove the Special Date Color

703 Views Last edit May 16, 2018 at 11:50 AM 2 rev

Hello Everyone,

Im facing an issue in sap.ui.unified.Calendar. I want to remove the color of the special date onclick of any particular date. But im not able to achieve this. Can some one please

help me to fix this..

Here from the above screenshot, If i select on date 18th May, Green color should get removed and gray color should come like 1st to 4th May.

To give that color. I used Type in addSpecialDate() method. Below is my code..

var oCal1 = this.getView().byId("myCalendar");
oCal1.addSpecialDate(new sap.ui.unified.DateTypeRange({
startDate: new Date("Fri May 18 2018 00:00:00 GMT+0530 (India Standard Time)"),
type: sType,
tooltip: data.results[i].Tooltip

Now how can i remove the selected date color on click of that particular date? I tried to remove the Color by CSS too. But that fix also didnt helped me. Please help me to solve this issue.

Thank you in advance


color.png (17.6 kB)