I came up with the following jQuery statement that highlights an event in the calendar:
skuid.jQuery(".nx-cal-event:has(a[href=‘/00U0G00000k2jb0UAA’]) “).addClass(“highlightAppointment”)
this is very specific and it only selects an event that has a child a tag with an href to a particular SF Id. This works great when I am using the console. It highlights the event.
However there are two issues:
1) Whenever I do something with the calendar the highlight goes away.
2) I am trying to add the same command when the calendar is first loaded but I don’t get the same results. In fact nothing happens.
$(document.body).one(‘pageload’,function() {
CAL.ChangeView(“week”);
skuid.jQuery(”.nx-cal-event:has(a[href=‘/00U0G00000k2jb0UAA’]) ").addClass(“highlightAppointment”);
});
Any thoughts. Thank you.
Question
Styling a single Event in the calendar
This topic has been closed for replies.
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.