commit extjs-2.2.1
[extjs.git] / examples / simple-widgets / qtips.js
1 /*\r
2  * Ext JS Library 2.2.1\r
3  * Copyright(c) 2006-2009, Ext JS, LLC.\r
4  * licensing@extjs.com\r
5  * \r
6  * http://extjs.com/license\r
7  */\r
8 \r
9 Ext.onReady(function(){\r
10     new Ext.ToolTip({\r
11         target: 'tip1',\r
12         html: 'A very simple tooltip'\r
13     });\r
14 \r
15     new Ext.ToolTip({\r
16         target: 'ajax-tip',\r
17         width: 200,\r
18         autoLoad: {url: 'ajax-tip.html'},\r
19         dismissDelay: 15000 // auto hide after 15 seconds\r
20     });\r
21 \r
22     new Ext.ToolTip({\r
23         target: 'tip2',\r
24         html: 'Click the X to close me',\r
25         title: 'My Tip Title',\r
26         autoHide: false,\r
27         closable: true,\r
28         draggable:true\r
29     });\r
30 \r
31     new Ext.ToolTip({\r
32         target: 'track-tip',\r
33         title: 'Mouse Track',\r
34         width:200,\r
35         html: 'This tip will follow the mouse while it is over the element',\r
36         trackMouse:true\r
37     });\r
38 \r
39 \r
40     Ext.QuickTips.init();\r
41 \r
42 });