define(["require", "exports", "@syncfusion/ej2-treegrid"], function (require, exports, ej2_treegrid_1) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var Reorder = (function () {
function Reorder(gantt) {
this.parent = gantt;
ej2_treegrid_1.TreeGrid.Inject(ej2_treegrid_1.Reorder);
this.parent.treeGrid.allowReordering = this.parent.allowReordering;
this.bindEvents();
}
Reorder.prototype.getModuleName = function () {
return 'reorder';
};
Reorder.prototype.bindEvents = function () {
var _this = this;
this.parent.treeGrid.columnDragStart = function (args) {
_this.parent.trigger('columnDragStart', args);
};
this.parent.treeGrid.columnDrag = function (args) {
_this.parent.trigger('columnDrag', args);
};
this.parent.treeGrid.columnDrop = function (args) {
_this.parent.trigger('columnDrop', args);
};
};
Reorder.prototype.destroy = function () {
};
return Reorder;
}());
exports.Reorder = Reorder;
});
|