onLoaded function?

I am playing around with some demo code to see if Mobiscroll will be useful for a tool we are building internally, and so far so good.

However I would like to run a custom function after all the data has been loaded into the timeline using the getEvents method. I tried onInit, but that appears to fire before the data is rendered. If I set a timeout inside onInit then run it, all events are available which is great, but I don’t want to rely on a timeout.

Is there a hidden onLoaded or onComplete event available? I tried searching the forums for a similar question but couldn’t find anything.


Hello @mike.henderson !

There are events you can use for this purpose, I think onPageLoaded is what you might looking for