Tooltip

Game development with Board Game Arena Studio
Post Reply
User avatar
AxeCrazy
Posts: 18
Joined: 15 March 2014, 01:07

Tooltip

Post by AxeCrazy »

Goodday,

Again working on a BGA game and struggeling with tooltip displaying.

For now ii just added a simple this.addTooltipHtml('id_of_div', "text to display") to my js file, but it is not displaying at all.
Is any initialization needed before tooltip are displayed?
Adding a dojo package?
css changes?

no clue yet

thanx
User avatar
thoun
Posts: 1190
Joined: 10 December 2020, 22:25

Re: Tooltip

Post by thoun »

Nothing special needed. Make sure your element with id is created before this call, and never recreated (use of innerhtml += is a traditional culprit)
User avatar
AxeCrazy
Posts: 18
Joined: 15 March 2014, 01:07

Re: Tooltip

Post by AxeCrazy »

oke,
i added a tooltip of a div which is created directlye in the tpl file and that works,
But adding tooltips to the element dynamically placed in the setup does not seems to work.
Added element with the dojo.place(this.format_block....) into a div which is in the tpl file and adding tooltip to those does not seems to work?
User avatar
AxeCrazy
Posts: 18
Joined: 15 March 2014, 01:07

Re: Tooltip

Post by AxeCrazy »

Nevermind, now it works.
probably a z-index issue?
Post Reply

Return to “Developers”