Page 1 of 1

[scheduler] respond to event tap

Posted: Tue May 13, 2025 4:39 pm
by dbennett

hi, currently cannot post in the Scheduler forum despite being a paid customer (message me for creds if needed).

how can I respond to event taps on mobile (click handler seemingly does not work for this)?


Re: [scheduler] respond to event tap

Posted: Tue May 13, 2025 6:56 pm
by marcio

Hey dbennett,

Thanks for reaching out.

To respond to event taps on mobile, you can use the eventClick event in Bryntum Scheduler. This event should work for both desktop and mobile environments. If the click handler is not working as expected, ensure that you are using the correct event listener setup.

Here's a basic example of how you can set up an event listener for eventClick:

scheduler.on('eventClick', ({ eventRecord }) => {
    console.log(`Event tapped: ${eventRecord.name}`);
});

If you are using a framework like React or Angular, make sure to use the appropriate syntax for setting up event listeners. For example, in React, you can use the onEventClick prop:

<BryntumScheduler onEventClick={({ eventRecord }) => console.log(`Event tapped: ${eventRecord.name}`)} />

If the issue persists, please provide more details or code snippets so I can assist you further.