TooltipDialog

Pass a widget (or a string if its content should be text-only) in this widgets' "content" parameter. This represents the content of the dialog.

This widget inherits from http://dojotoolkit.org/reference-guide/1.10/dijit/TooltipDialog.html.

Example
// @formatter:off
 define([
   "dojo/_base/declare",
   "dojo/_base/lang",
   "dijit/layout/ContentPane",
   "dijit/_WidgetBase",
   "dijit/popup",
 
   "blueconic/api/widgets/dialog/TooltipDialog"
 // @formatter:on
 ], function(declare, lang, ContentPane, _WidgetBase, popup, TooltipDialog) {
 
   return declare("your.package.widget", [_WidgetBase], {
 
     postCreate: function() {
       // call super
       this.inherited(arguments);
 
       // initialize the tooltip dialog
       var tooltipDialog = new TooltipDialog({
         content: new ContentPane({
           content: "content here"
         })
       });
 
       popup.open({
         popup: tooltipDialog,
         around: this.domNode
       });
     }
   });
 });

Properties

content string, dijit/_WidgetBase

The widget (or text) used for the tooltip content.