AddEventNow

Hi,

could somebody describe a function AddEventNow? Tried to use with same parameters as AddEvent, but the text part failed me. Didn’t find any reference from documentation only in this forum :slight_smile:

Thanks.

Function produce the effect similar to dbl-click or drag-create action. It doesn’t create event with defined params , but starts event creation process, similar to mouse actions ( triggers form showing, where extra details can be specified)

//create new event with current time as start time scheduler.addEventNow();
or

//add new event at specific date scheduler.addEventNow(new Date(2010,4,1,16,0), new Date(2010,4,1,18:00));

By the way, you can alter default text of new event through

scheduler.locale.labels.new_event = "custom text"