define(["require", "exports", "@syncfusion/ej2-dropdowns", "./base-module"], function (require, exports, ej2_dropdowns_1, base_module_1) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var ComboBox = (function () {
function ComboBox(parent) {
this.compObj = undefined;
this.parent = parent;
this.parent.comboBoxModule = this;
this.base = new base_module_1.Base(this.parent, this);
}
ComboBox.prototype.render = function (e) {
this.compObj = new ej2_dropdowns_1.ComboBox(this.parent.model);
this.compObj.appendTo(e.target);
};
ComboBox.prototype.focus = function () {
this.compObj.element.focus();
};
ComboBox.prototype.showPopup = function () {
this.compObj.focusIn();
this.compObj.showPopup();
};
ComboBox.prototype.destroy = function () {
this.base.destroy();
};
ComboBox.prototype.updateValue = function (e) {
if (this.compObj && e.type === 'ComboBox') {
this.parent.setProperties({ value: this.compObj.value }, true);
this.parent.extendModelValue(this.compObj.value);
}
};
ComboBox.prototype.getModuleName = function () {
return 'combo-box';
};
return ComboBox;
}());
exports.ComboBox = ComboBox;
});
|