Search
Tooltip Class
See Also
 






Represents a popup window, containing a custom message.

Namespace: MindFusion.Common.UI
File: Tooltip.js

 Syntax

JavaScript  Copy Code

// class
Tooltip.prototype = {}

 Example

The following example uses the handler of a itemDoubleClick event to create a tooltip for the clicked item:

JavaScript  Copy Code

function handleItemDoubleClick(sender, args)
{
 if (args.item.data)
 {
  var tip = new ui.Tooltip(args.item.element);

  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;
       }
}

 Inheritance Hierarchy

MindFusion.Common.UI.Control
    MindFusion.Common.UI.Tooltip
        MindFusion.Common.UI.DropDown

 See Also