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.

89 lines
2.4 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. var ResizableExample = {
  8. init : function(){
  9. var basic = new Ext.Resizable('basic', {
  10. width: 200,
  11. height: 100,
  12. minWidth:100,
  13. minHeight:50
  14. });
  15. var animated = new Ext.Resizable('animated', {
  16. width: 200,
  17. pinned: true,
  18. height: 100,
  19. minWidth:100,
  20. minHeight:50,
  21. animate:true,
  22. easing: 'backIn',
  23. duration:.6
  24. });
  25. var wrapped = new Ext.Resizable('wrapped', {
  26. wrap:true,
  27. pinned:true,
  28. minWidth:50,
  29. minHeight: 50,
  30. preserveRatio: true
  31. });
  32. var transparent = new Ext.Resizable('transparent', {
  33. wrap:true,
  34. minWidth:50,
  35. minHeight: 50,
  36. preserveRatio: true,
  37. transparent:true
  38. });
  39. var custom = new Ext.Resizable('custom', {
  40. wrap:true,
  41. pinned:true,
  42. minWidth:50,
  43. minHeight: 50,
  44. preserveRatio: true,
  45. handles: 'all',
  46. draggable:true,
  47. dynamic:true
  48. });
  49. var customEl = custom.getEl();
  50. // move to the body to prevent overlap on my blog
  51. document.body.insertBefore(customEl.dom, document.body.firstChild);
  52. customEl.on('dblclick', function(){
  53. customEl.hide(true);
  54. });
  55. customEl.hide();
  56. Ext.get('showMe').on('click', function(){
  57. customEl.center();
  58. customEl.show(true);
  59. });
  60. var dwrapped = new Ext.Resizable('dwrapped', {
  61. wrap:true,
  62. pinned:true,
  63. width:450,
  64. height:150,
  65. minWidth:200,
  66. minHeight: 50,
  67. dynamic: true
  68. });
  69. var snap = new Ext.Resizable('snap', {
  70. pinned:true,
  71. width:250,
  72. height:100,
  73. handles: 'e',
  74. widthIncrement:50,
  75. minWidth: 50,
  76. dynamic: true
  77. });
  78. }
  79. };
  80. Ext.EventManager.onDocumentReady(ResizableExample.init, ResizableExample, true);