igniteui-react-grids
Version:
Ignite UI React grid components.
68 lines (67 loc) • 1.71 kB
JavaScript
import { ImageStretchOptions_$type } from "./ImageStretchOptions";
import { EditorType_$type } from "./EditorType";
import { IgrDataGridColumn } from "./igr-data-grid-column";
import { ImageColumn } from "./ImageColumn";
import { ensureEnum } from "igniteui-react-core";
/**
* Represents an Image grid column, used to allow the developer to display an image in a cell.
*/
export class IgrImageColumn extends IgrDataGridColumn {
createImplementation() {
return new ImageColumn();
}
/**
* @hidden
*/
get i() {
return this._implementation;
}
constructor(props) {
super(props);
}
/**
* Gets or sets the stretch option to use when rendering images
*/
get imageStretchOption() {
return this.i.n6;
}
set imageStretchOption(v) {
this.i.n6 = ensureEnum(ImageStretchOptions_$type, v);
}
/**
* 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.n7;
}
set editorDataSource(v) {
this.i.n7 = v;
}
/**
* Gets or sets the ComboBox text field.
*/
get editorTextField() {
return this.i.n8;
}
set editorTextField(v) {
this.i.n8 = v;
}
/**
* Gets or sets the ComboBox value field.
*/
get editorValueField() {
return this.i.n9;
}
set editorValueField(v) {
this.i.n9 = v;
}
}