Page 1 of 1

Tooltip

Posted: 29 February 2024, 11:18
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

Re: Tooltip

Posted: 29 February 2024, 11:25
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)

Re: Tooltip

Posted: 29 February 2024, 14:01
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?

Re: Tooltip

Posted: 29 February 2024, 14:15
by AxeCrazy
Nevermind, now it works.
probably a z-index issue?