Web Interface For Lite Argus Control modules
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

74 lines
1.9 KiB

​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
  1. /*!
  2. * Ext JS Library 3.3.1
  3. * Copyright(c) 2006-2010 Sencha Inc.
  4. * licensing@sencha.com
  5. * http://www.sencha.com/license
  6. */
  7. Ext.onReady(function(){
  8. new Ext.ToolTip({
  9. target: 'tip1',
  10. html: 'A very simple tooltip'
  11. });
  12. new Ext.ToolTip({
  13. target: 'ajax-tip',
  14. width: 200,
  15. autoLoad: {url: 'ajax-tip.html'},
  16. dismissDelay: 15000 // auto hide after 15 seconds
  17. });
  18. new Ext.ToolTip({
  19. target: 'tip2',
  20. html: 'Click the X to close me',
  21. title: 'My Tip Title',
  22. autoHide: false,
  23. closable: true,
  24. draggable:true
  25. });
  26. new Ext.ToolTip({
  27. target: 'track-tip',
  28. title: 'Mouse Track',
  29. width:200,
  30. html: 'This tip will follow the mouse while it is over the element',
  31. trackMouse:true
  32. });
  33. new Ext.ToolTip({
  34. title: '<a href="#">Rich Content Tooltip</a>',
  35. id: 'content-anchor-tip',
  36. target: 'leftCallout',
  37. anchor: 'left',
  38. html: null,
  39. width: 415,
  40. autoHide: false,
  41. closable: true,
  42. contentEl: 'content-tip', // load content from the page
  43. listeners: {
  44. 'render': function(){
  45. this.header.on('click', function(e){
  46. e.stopEvent();
  47. Ext.Msg.alert('Link', 'Link to something interesting.');
  48. Ext.getCmp('content-anchor-tip').hide();
  49. }, this, {delegate:'a'});
  50. }
  51. }
  52. });
  53. new Ext.ToolTip({
  54. target: 'bottomCallout',
  55. anchor: 'top',
  56. anchorOffset: 85, // center the anchor on the tooltip
  57. html: 'This tip\'s anchor is centered'
  58. });
  59. new Ext.ToolTip({
  60. target: 'trackCallout',
  61. anchor: 'right',
  62. trackMouse: true,
  63. html: 'Tracking while you move the mouse'
  64. });
  65. Ext.QuickTips.init();
  66. });