UNPKG

igniteui-react-grids

Version:

Ignite UI React grid components.

58 lines (57 loc) 1.4 kB
import { EditorType_$type } from "./EditorType"; import { IgrDataGridColumn } from "./igr-data-grid-column"; import { TextColumn } from "./TextColumn"; import { ensureEnum } from "igniteui-react-core"; /** * Represents a Text grid column, used to allow the developer to display a formatted text in a cell. */ export class IgrTextColumn extends IgrDataGridColumn { createImplementation() { return new TextColumn(); } /** * @hidden */ get i() { return this._implementation; } constructor(props) { super(props); } /** * Gets or sets the editor type used for editing cells in this column. */ get editorType() { return this.i.n2; } set editorType(v) { this.i.n2 = ensureEnum(EditorType_$type, v); } /** * Gets or sets the ComboBox data source. */ get editorDataSource() { return this.i.n3; } set editorDataSource(v) { this.i.n3 = v; } /** * Gets or sets the ComboBox text field. */ get editorTextField() { return this.i.n5; } set editorTextField(v) { this.i.n5 = v; } /** * Gets or sets the ComboBox value field. */ get editorValueField() { return this.i.n6; } set editorValueField(v) { this.i.n6 = v; } }