all files / grid/renderer/ edit-cell-base.js

100% Statements 16/16
100% Branches 6/6
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 26   1603×   153×   110×   215× 182× 122×   182×          
define(["require", "exports", "../base/util"], function (require, exports, util_1) {
    "use strict";
    Object.defineProperty(exports, "__esModule", { value: true });
    var EditCellBase = (function () {
        function EditCellBase(parent) {
            this.parent = parent;
        }
        EditCellBase.prototype.create = function (args) {
            return util_1.createEditElement(this.parent, args.column, 'e-field', { type: 'text' });
        };
        EditCellBase.prototype.read = function (element) {
            return element.ej2_instances[0].value;
        };
        EditCellBase.prototype.destroy = function () {
            if (this.obj && !this.obj.isDestroyed) {
                if (this.removeEventHandler) {
                    this.removeEventHandler();
                }
                this.obj.destroy();
            }
        };
        return EditCellBase;
    }());
    exports.EditCellBase = EditCellBase;
});