Create an event by click on external button

I have my own button which is not a part of the dhtmlx scheduler. Now, if someone clicks on this button, I want to create an event. It should use the current date in scheduler or even better - find the first available time on the scheduler.

$(’#myownbutton’).click(function() {
// add event
});

Hello,

Please checkout API reference.
In your case you can use addEvent or addEventNow methods.

Kind regards,
Ilya