Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi everyone,
I am wondering if there is a way to schedule my code to be executed after the last qlik element on the website is rendered.
I want to add some listeners to different objects and I have to make sure they exist when I do so.
AFAIK the getObject() function returns a promise but is there also a posibility to detect when the last object is done rendering?
Glad for any ideas on this.
Regards,
Marco
Hi Marco,
The getObject promise resolves when the object is created, in most cases before it is completely rendered, but do you really need to wait until rendering is complete before adding the listeners? You could probably increment a counter when you call getObject and decrement it when the promise resolves, but there is no rendering complete event.
Hope this helps
Erik Wetterberg
Hi Marco,
The getObject promise resolves when the object is created, in most cases before it is completely rendered, but do you really need to wait until rendering is complete before adding the listeners? You could probably increment a counter when you call getObject and decrement it when the promise resolves, but there is no rendering complete event.
Hope this helps
Erik Wetterberg