Dear all,
I had encountered a problem that my tooltip could not be added to jstpl objects I had created.
Here are some facts:
1. I had confirm the text I wished to add has been passed to the frontend. They can be found when I view source on the webpage.
2. I had confirm the ids of the jstpl objects that I am trying to add the tooltip to are unique throughout the entire page.
3. Up to this point, I had added tooltips for all of other jstpl & non-jstpl components, they still can be loaded.
4. The current tooltip that I could not add tooltip were added run within a loop during setupgame in game.js, there were other components that had been added tooltip just before this segment of codes are being added. The weirdest part is, it works on the first jstpl object but fails on all others as the loop loops.
Anyone has any insight on this?
I had encountered a problem that my tooltip could not be added to jstpl objects I had created.
Here are some facts:
1. I had confirm the text I wished to add has been passed to the frontend. They can be found when I view source on the webpage.
2. I had confirm the ids of the jstpl objects that I am trying to add the tooltip to are unique throughout the entire page.
3. Up to this point, I had added tooltips for all of other jstpl & non-jstpl components, they still can be loaded.
4. The current tooltip that I could not add tooltip were added run within a loop during setupgame in game.js, there were other components that had been added tooltip just before this segment of codes are being added. The weirdest part is, it works on the first jstpl object but fails on all others as the loop loops.
Anyone has any insight on this?