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.

83 lines
1.7 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.Slider({
  9. renderTo: 'basic-slider',
  10. width: 214,
  11. minValue: 0,
  12. maxValue: 100
  13. });
  14. new Ext.Slider({
  15. renderTo: 'increment-slider',
  16. width: 214,
  17. value:50,
  18. increment: 10,
  19. minValue: 0,
  20. maxValue: 100
  21. });
  22. new Ext.Slider({
  23. renderTo: 'vertical-slider',
  24. height: 214,
  25. vertical: true,
  26. minValue: 0,
  27. maxValue: 100
  28. });
  29. new Ext.Slider({
  30. renderTo: 'tip-slider',
  31. width: 214,
  32. minValue: 0,
  33. maxValue: 100,
  34. plugins: new Ext.slider.Tip()
  35. });
  36. var tip = new Ext.slider.Tip({
  37. getText: function(thumb){
  38. return String.format('<b>{0}% complete</b>', thumb.value);
  39. }
  40. });
  41. new Ext.Slider({
  42. renderTo: 'custom-tip-slider',
  43. width: 214,
  44. increment: 10,
  45. minValue: 0,
  46. maxValue: 100,
  47. plugins: tip
  48. });
  49. new Ext.Slider({
  50. renderTo: 'custom-slider',
  51. width: 214,
  52. increment: 10,
  53. minValue: 0,
  54. maxValue: 100,
  55. plugins: new Ext.slider.Tip()
  56. });
  57. new Ext.slider.MultiSlider({
  58. renderTo: 'multi-slider-horizontal',
  59. width : 214,
  60. minValue: 0,
  61. maxValue: 100,
  62. values : [10, 50, 90],
  63. plugins : new Ext.slider.Tip()
  64. });
  65. new Ext.slider.MultiSlider({
  66. renderTo : 'multi-slider-vertical',
  67. vertical : true,
  68. height : 214,
  69. minValue: 0,
  70. maxValue: 100,
  71. values : [10, 50, 90],
  72. plugins : new Ext.slider.Tip()
  73. });
  74. });