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.

51 lines
1.8 KiB

​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
  1. <html>
  2. <head>
  3. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  4. <title>The source code</title>
  5. <link href="../resources/prettify/prettify.css" type="text/css" rel="stylesheet" />
  6. <script type="text/javascript" src="../resources/prettify/prettify.js"></script>
  7. </head>
  8. <body onload="prettyPrint();">
  9. <pre class="prettyprint lang-js">/*!
  10. * Ext JS Library 3.3.1
  11. * Copyright(c) 2006-2010 Sencha Inc.
  12. * licensing@sencha.com
  13. * http://www.sencha.com/license
  14. */
  15. <div id="cls-Ext.menu.Separator"></div>/**
  16. * @class Ext.menu.Separator
  17. * @extends Ext.menu.BaseItem
  18. * Adds a separator bar to a menu, used to divide logical groups of menu items. Generally you will
  19. * add one of these by using "-" in you call to add() or in your items config rather than creating one directly.
  20. * @constructor
  21. * @param {Object} config Configuration options
  22. * @xtype menuseparator
  23. */
  24. Ext.menu.Separator = Ext.extend(Ext.menu.BaseItem, {
  25. <div id="cfg-Ext.menu.Separator-itemCls"></div>/**
  26. * @cfg {String} itemCls The default CSS class to use for separators (defaults to "x-menu-sep")
  27. */
  28. itemCls : "x-menu-sep",
  29. <div id="cfg-Ext.menu.Separator-hideOnClick"></div>/**
  30. * @cfg {Boolean} hideOnClick True to hide the containing menu after this item is clicked (defaults to false)
  31. */
  32. hideOnClick : false,
  33. <div id="cfg-Ext.menu.Separator-activeClass"></div>/**
  34. * @cfg {String} activeClass
  35. * @hide
  36. */
  37. activeClass: '',
  38. // private
  39. onRender : function(li){
  40. var s = document.createElement("span");
  41. s.className = this.itemCls;
  42. s.innerHTML = "&#160;";
  43. this.el = s;
  44. li.addClass("x-menu-sep-li");
  45. Ext.menu.Separator.superclass.onRender.apply(this, arguments);
  46. }
  47. });
  48. Ext.reg('menuseparator', Ext.menu.Separator);</pre>
  49. </body>
  50. </html>