showEvent
Description
Shows and highlights the specified event in the current or specified view
showEvent: (id: string, view?: string) => void
Parameters
id- (required) string - the event's idview- (optional) string - the view name
Example
//shows the event with 'id=someId' in the Week view
scheduler.showEvent(someId,"week");
//shows the event with 'id=someId' in the currently active view
scheduler.showEvent(someId);
Related samples
Details
- The names for default views are 'day', 'week', 'month'. To specify any other view - use its name parameter.
- The method invokes the onBeforeEventDisplay and onAfterEventDisplay events.
For example, you programmatically add a new event and want to show it in the scheduler:
var eventId = scheduler.addEvent({
start_date: "08-06-2013 09:00",
end_date: "08-06-2013 11:00",
text: "Meeting"
});
...
scheduler.showEvent(eventId);
Need help?
Got a question about the documentation? Reach out to our technical support team for help and guidance. For custom component solutions, visit the Services page.