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
});