You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In _MakeWordsClickable() I used the jQuery .on() command which is like a live bind, so as each word is added to the cloud it automatically gets that code.
For example:
var_MakeWordsClickable=function(){$('div#wordcloud').on('click','span',function(){// do something});}
This way there is no need for a timeout, which would be subject to the amount of words loaded.
In a tool I'm developing we need to be able to trigger some actions for each word in the generated cloud.
When using the afterCloudRender the correct callback is triggered but none of the words are found.
The console shows 'callback start' and 'callback end' but the size of the spans is 0.
When I execute the code with a timeout of 200 miliseconds everything works.
I tried to circumvent the timeout by using the afterWordRender at each word, but the same problems exists.
So in essence, jQCloud is not waiting until the cloud is completely rendered.
Thanks for looking into this.
The text was updated successfully, but these errors were encountered: