I tried using hilites in the TimeLine component, but it didn't work out. Can you tell me where my mistake is?
	
							
						
					Code:
	
	  const CURRENT_DATE = new Date();
  const WARNING_DATE = new Date(new Date().setMonth(CURRENT_DATE.getMonth() + 4));
  const myhilites = [
    { fieldName: "endDate", backgroundColor: "#CC0000", cssText: "background-color: #CC0000;", criteria: { fieldName: "endDate", operator: "lessThan", value: CURRENT_DATE } },
    { fieldName: "endDate", backgroundColor: "#E08E30", cssText: "background-color: #E08E30;", criteria: { fieldName: "endDate", operator: "lessThan", value: WARNING_DATE } }
  ];
isc.Timeline.create({
    ID: "timeline",
    ...
    hilites: myhilites
});
Comment