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