Control.attach override.
Namespace: MindFusion.Common.UI
File: Tooltip.js
Syntax
JavaScript
Copy Code
|
---|
function attach () |
Example
The following code creates a Tooltip and attaches it to an HTML element called "#tabs":
JavaScript
Copy Code
|
---|
function loadWindow(sender) { var tip = new ui.Tooltip(); var t = document.createElement("div"); var img = document.createElement("img"); img.width = img.height = "40"; img.src = "icon_fish.png"; img.style.verticalAlign = "middle"; t.appendChild(img); var span = document.createElement("span"); span.innerText = "This user is not currently online"; t.appendChild(span); tip.template = t.outerHTML; sender.element.querySelector("#tabs").appendChild(tip.draw()); tip.attach(); } |
See Also