+ \r
+ new Ext.ToolTip({ \r
+ title: '<a href="#">Rich Content Tooltip</a>',\r
+ id: 'content-anchor-tip',\r
+ target: 'leftCallout',\r
+ anchor: 'left',\r
+ html: null,\r
+ width: 415,\r
+ autoHide: false,\r
+ closable: true,\r
+ contentEl: 'content-tip', // load content from the page\r
+ listeners: {\r
+ 'render': function(){\r
+ this.header.on('click', function(e){\r
+ e.stopEvent();\r
+ Ext.Msg.alert('Link', 'Link to something interesting.');\r
+ Ext.getCmp('content-anchor-tip').hide();\r
+ }, this, {delegate:'a'});\r
+ }\r
+ }\r
+ });\r
+ \r
+ new Ext.ToolTip({\r
+ target: 'bottomCallout',\r
+ anchor: 'top',\r
+ anchorOffset: 85, // center the anchor on the tooltip\r
+ html: 'This tip\'s anchor is centered'\r
+ });\r
+ \r
+ new Ext.ToolTip({\r
+ target: 'trackCallout',\r
+ anchor: 'right',\r
+ trackMouse: true,\r
+ html: 'Tracking while you move the mouse'\r
+ });\r