UNPKG

igniteui-react-grids

Version:

Ignite UI React grid components.

69 lines (68 loc) 1.64 kB
import { IgrDataGridColumn } from "./igr-data-grid-column"; import { ComboBoxColumn } from "./ComboBoxColumn"; /** * A combobox column. */ export class IgrComboBoxColumn extends IgrDataGridColumn { createImplementation() { return new ComboBoxColumn(); } /** * @hidden */ get i() { return this._implementation; } constructor(props) { super(props); } /** * 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 actualDataSource() { return this.i.n4; } set actualDataSource(v) { this.i.n4 = v; } /** * Gets or sets the ComboBox data source. */ get dataSource() { return this.i.n5; } set dataSource(v) { this.i.n5 = v; } /** * Gets or sets the ComboBox text field. */ get textField() { return this.i.n9; } set textField(v) { this.i.n9 = v; } /** * Gets or sets the ComboBox value field. */ get valueField() { return this.i.oa; } set valueField(v) { this.i.oa = v; } /** * Gets or sets the ComboBox value field. */ get valueMultiField() { return this.i.n2; } set valueMultiField(v) { if (v && !Array.isArray(v) && typeof (v) == "string") { const re = /\s*(?:,|\s|$)\s*/gm; v = v.split(re); } this.i.n2 = v; } }