I am using:
SmartClient Version: v10.0p_2015-06-25/Pro Deployment (built 2015-06-25)
I want to restyle a timeline event when its selected.
I'm trying to change the event style in the timeline onEventClick callback method.
code looks like ( typed in by hand )
public void onEventClick( new EventClickHandler( CalendarEventClick event) {
CalenderEvent ca = event.getEvent();
// I tried all the following (one at a time) to update the event styling
ca,setBackgroundColor("blue"); // THIS WORKED - event background turns blue
ca.setTextColor("blue"); // DID NOT WORK, event displayed text color unchanged
ca.setStyleName("one of the event styles I use when I create events - so I know it works"); // DID NOT WORK NO CHANGE
timeline.updateCalendarEvent(event.getEvent(), ca, null);
}
Any suggestions would be appreciated.
Thanks in Advance
SmartClient Version: v10.0p_2015-06-25/Pro Deployment (built 2015-06-25)
I want to restyle a timeline event when its selected.
I'm trying to change the event style in the timeline onEventClick callback method.
code looks like ( typed in by hand )
public void onEventClick( new EventClickHandler( CalendarEventClick event) {
CalenderEvent ca = event.getEvent();
// I tried all the following (one at a time) to update the event styling
ca,setBackgroundColor("blue"); // THIS WORKED - event background turns blue
ca.setTextColor("blue"); // DID NOT WORK, event displayed text color unchanged
ca.setStyleName("one of the event styles I use when I create events - so I know it works"); // DID NOT WORK NO CHANGE
timeline.updateCalendarEvent(event.getEvent(), ca, null);
}
Any suggestions would be appreciated.
Thanks in Advance
Comment