Initialization and Destroying

Is there a way to assign the scheduler object to a local variable on init?

Something like:

var schedule = scheduler.init("#element")

And what is the proper way to call the destructor to make sure memory is cleaned up?

Thanks,
Mike

You can, but it has not much sense, as standart scheduler edition allows only one scheduler per page

var schedule = scheduler;

If you need to have multiple schedulers - you need a pro version, which has separate api for such task.
docs.dhtmlx.com/doku.php?id=dhtm … e_per_page

Thanks. How about calling the destructor?

If you are creating scheduler once per page - there is no need for destructor call, as during page reloading, all scheduler’s structures will be correctly removed.