UNPKG

igniteui-react-grids

Version:

Ignite UI React grid components.

97 lines (96 loc) 2.91 kB
import { __extends } from "tslib"; import { IgrDataGridColumn } from "./igr-data-grid-column"; import { ComboBoxColumn } from "./ComboBoxColumn"; /** * A combobox column. */ var IgrComboBoxColumn = /** @class */ /*@__PURE__*/ (function (_super) { __extends(IgrComboBoxColumn, _super); function IgrComboBoxColumn(props) { return _super.call(this, props) || this; } IgrComboBoxColumn.prototype.createImplementation = function () { return new ComboBoxColumn(); }; Object.defineProperty(IgrComboBoxColumn.prototype, "i", { /** * @hidden */ get: function () { return this._implementation; }, enumerable: false, configurable: true }); Object.defineProperty(IgrComboBoxColumn.prototype, "actualDataSource", { /** * Gets the actual data source that is being used by the combo. If a collection was provided for the combobox data, an implicit LocalDataSource is created, and this is available via this property. */ get: function () { return this.i.n4; }, set: function (v) { this.i.n4 = v; }, enumerable: false, configurable: true }); Object.defineProperty(IgrComboBoxColumn.prototype, "dataSource", { /** * Gets or sets the ComboBox data source. */ get: function () { return this.i.n5; }, set: function (v) { this.i.n5 = v; }, enumerable: false, configurable: true }); Object.defineProperty(IgrComboBoxColumn.prototype, "textField", { /** * Gets or sets the ComboBox text field. */ get: function () { return this.i.n9; }, set: function (v) { this.i.n9 = v; }, enumerable: false, configurable: true }); Object.defineProperty(IgrComboBoxColumn.prototype, "valueField", { /** * Gets or sets the ComboBox value field. */ get: function () { return this.i.oa; }, set: function (v) { this.i.oa = v; }, enumerable: false, configurable: true }); Object.defineProperty(IgrComboBoxColumn.prototype, "valueMultiField", { /** * Gets or sets the ComboBox value field. */ get: function () { return this.i.n2; }, set: function (v) { if (v && !Array.isArray(v) && typeof (v) == "string") { var re = /\s*(?:,|\s|$)\s*/gm; v = v.split(re); } this.i.n2 = v; }, enumerable: false, configurable: true }); return IgrComboBoxColumn; }(IgrDataGridColumn)); export { IgrComboBoxColumn };