Our pure JavaScript Scheduler component


Post by burnit »

HI,

I pass an ID of an event and want the DOM to display the event in the scheduler and bring it into view.

  const eventRecord = schedulerPro.current.instance.eventStore.getById(routeParams.eventId);
	const elem = schedulerPro.current.instance.getEventElement(eventRecord); 
	if (elem) {
		elem.focus();
	}

But the result of 'schedulerPro.current.instance.getEventElement(eventRecord);' is undefined.

Any idea?

Many thanks,
André


Post by mats »


Post Reply