4 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
5 <title>The source code</title>
6 <link href="../prettify/prettify.css" type="text/css" rel="stylesheet" />
7 <script type="text/javascript" src="../prettify/prettify.js"></script>
8 <style type="text/css">
9 .highlight { display: block; background-color: #ddd; }
11 <script type="text/javascript">
12 function highlight() {
13 document.getElementById(location.hash.replace(/#/, "")).className = "highlight";
17 <body onload="prettyPrint(); highlight();">
18 <pre class="prettyprint lang-js"><span id='Ext-grid-plugin-HeaderReorderer'>/**
19 </span> * @class Ext.grid.plugin.HeaderReorderer
20 * @extends Ext.util.Observable
23 Ext.define('Ext.grid.plugin.HeaderReorderer', {
24 extend: 'Ext.util.Observable',
25 requires: ['Ext.grid.header.DragZone', 'Ext.grid.header.DropZone'],
26 alias: 'plugin.gridheaderreorderer',
28 init: function(headerCt) {
29 this.headerCt = headerCt;
30 headerCt.on('render', this.onHeaderCtRender, this);
33 <span id='Ext-grid-plugin-HeaderReorderer-method-destroy'> /**
35 * AbstractComponent calls destroy on all its plugins at destroy time.
38 Ext.destroy(this.dragZone, this.dropZone);
41 onHeaderCtRender: function() {
42 this.dragZone = Ext.create('Ext.grid.header.DragZone', this.headerCt);
43 this.dropZone = Ext.create('Ext.grid.header.DropZone', this.headerCt);
45 this.dragZone.disable();
50 this.disabled = false;
52 this.dragZone.enable();
59 this.dragZone.disable();