Discuss anything related to web development but no technical support questions


Post 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)?


Post 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.

Best regards,
Márcio

How to ask for help? Please read our Support Policy


Post Reply