Skip to main content

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 id
  • view - (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);

Details

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);

showEvent_method

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.