/ext-4.1.0_b3/docs/source/Handle.html

https://bitbucket.org/srogerf/javascript · HTML · 49 lines · 44 code · 5 blank · 0 comment · 0 complexity · dbc47308fed9ffbb146c389518922434 MD5 · raw file

  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-resizer-Handle'>/**
  19. </span> * Provides a handle for 9-point resizing of Elements or Components.
  20. */
  21. Ext.define('Ext.resizer.Handle', {
  22. extend: 'Ext.Component',
  23. handleCls: '',
  24. baseHandleCls: Ext.baseCSSPrefix + 'resizable-handle',
  25. // Ext.resizer.Resizer.prototype.possiblePositions define the regions
  26. // which will be passed in as a region configuration.
  27. region: '',
  28. beforeRender: function() {
  29. var me = this;
  30. me.callParent();
  31. me.addCls(
  32. me.baseHandleCls,
  33. me.baseHandleCls + '-' + me.region,
  34. me.handleCls
  35. );
  36. },
  37. onRender: function() {
  38. this.callParent(arguments);
  39. this.el.unselectable();
  40. }
  41. });
  42. </pre>
  43. </body>
  44. </html>