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;
});
|