3 * Copyright(c) 2006-2010 Sencha Inc.
5 * http://www.sencha.com/license
7 Ext.onReady(function(){
10 html: 'A very simple tooltip'
16 autoLoad: {url: 'ajax-tip.html'},
17 dismissDelay: 15000 // auto hide after 15 seconds
22 html: 'Click the X to close me',
23 title: 'My Tip Title',
33 html: 'This tip will follow the mouse while it is over the element',
38 title: '<a href="#">Rich Content Tooltip</a>',
39 id: 'content-anchor-tip',
40 target: 'leftCallout',
46 contentEl: 'content-tip', // load content from the page
49 this.header.on('click', function(e){
51 Ext.Msg.alert('Link', 'Link to something interesting.');
52 Ext.getCmp('content-anchor-tip').hide();
53 }, this, {delegate:'a'});
59 target: 'bottomCallout',
61 anchorOffset: 85, // center the anchor on the tooltip
62 html: 'This tip\'s anchor is centered'
66 target: 'trackCallout',
69 html: 'Tracking while you move the mouse'