Separator2.html 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  5. <title>The source code</title>
  6. <link href="../resources/prettify/prettify.css" type="text/css" rel="stylesheet" />
  7. <script type="text/javascript" src="../resources/prettify/prettify.js"></script>
  8. <style type="text/css">
  9. .highlight { display: block; background-color: #ddd; }
  10. </style>
  11. <script type="text/javascript">
  12. function highlight() {
  13. document.getElementById(location.hash.replace(/#/, "")).className = "highlight";
  14. }
  15. </script>
  16. </head>
  17. <body onload="prettyPrint(); highlight();">
  18. <pre class="prettyprint lang-js"><span id='Ext-toolbar-Separator'>/**
  19. </span> * A simple class that adds a vertical separator bar between toolbar items (css class: 'x-toolbar-separator').
  20. *
  21. * @example
  22. * Ext.create('Ext.panel.Panel', {
  23. * title: 'Toolbar Separator Example',
  24. * width: 300,
  25. * height: 200,
  26. * tbar : [
  27. * 'Item 1',
  28. * { xtype: 'tbseparator' },
  29. * 'Item 2'
  30. * ],
  31. * renderTo: Ext.getBody()
  32. * });
  33. */
  34. Ext.define('Ext.toolbar.Separator', {
  35. extend: 'Ext.toolbar.Item',
  36. alias: 'widget.tbseparator',
  37. alternateClassName: 'Ext.Toolbar.Separator',
  38. baseCls: Ext.baseCSSPrefix + 'toolbar-separator',
  39. focusable: false,
  40. // Force border: true so container border is not set on this
  41. border: true
  42. });</pre>
  43. </body>
  44. </html>