all files / actions/ column-reorder.js

100% Statements 21/21
100% Branches 0/0
100% Functions 9/9
100% Lines 21/21
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32   209× 209× 209× 209×   27959×   209× 209×   209×   209×            
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;
});