all files / treegrid/actions/ resize.js

100% Statements 16/16
100% Branches 2/2
100% Functions 6/6
100% Lines 16/16
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   20× 20×     11279×   21× 18×          
define(["require", "exports", "@syncfusion/ej2-grids"], function (require, exports, ej2_grids_1) {
    "use strict";
    Object.defineProperty(exports, "__esModule", { value: true });
    var Resize = (function () {
        function Resize(parent) {
            ej2_grids_1.Grid.Inject(ej2_grids_1.Resize);
            this.parent = parent;
        }
        Resize.prototype.autoFitColumns = function (fName) {
            this.parent.grid.autoFitColumns(fName);
        };
        Resize.prototype.getModuleName = function () {
            return 'resize';
        };
        Resize.prototype.destroy = function () {
            if (this.parent.isDestroyed) {
                return;
            }
            this.parent.grid.resizeModule.destroy();
        };
        return Resize;
    }());
    exports.Resize = Resize;
});