Skip to main content

getRenderedEvent

Description

Gets the object of the currently displayed event

getRenderedEvent: (id: string) => HTMLElement

Parameters

  • id - (required) string - the event's id

Returns

  • event - (HTMLElement) - the event's HTML object - if the event is currently displayed in the scheduler.
    'null' - if the event isn't displayed in the scheduler at the moment of calling the method.

Example

var eventId = scheduler.addEvent({
start_date: "16-05-2013 09:00",
end_date: "16-05-2013 12:00",
text: "Meeting"
});
var eventObj = scheduler.getRenderedEvent(eventId);
//-> <div event_id="123649234723" ...>09:00 Meeting</div>

Details

note

Available from version 3.5

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.