igniteui-react-grids
Version:
Ignite UI React grid components.
96 lines (95 loc) • 2.92 kB
JavaScript
import { __extends } from "tslib";
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.
*/
var IgrImageColumn = /** @class */ /*@__PURE__*/ (function (_super) {
__extends(IgrImageColumn, _super);
function IgrImageColumn(props) {
return _super.call(this, props) || this;
}
IgrImageColumn.prototype.createImplementation = function () {
return new ImageColumn();
};
Object.defineProperty(IgrImageColumn.prototype, "i", {
/**
* @hidden
*/
get: function () {
return this._implementation;
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgrImageColumn.prototype, "imageStretchOption", {
/**
* Gets or sets the stretch option to use when rendering images
*/
get: function () {
return this.i.n7;
},
set: function (v) {
this.i.n7 = ensureEnum(ImageStretchOptions_$type, v);
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgrImageColumn.prototype, "editorType", {
/**
* Gets or sets the editor type used for editing cells in this column.
*/
get: function () {
return this.i.n3;
},
set: function (v) {
this.i.n3 = ensureEnum(EditorType_$type, v);
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgrImageColumn.prototype, "editorDataSource", {
/**
* Gets or sets the ComboBox data source.
*/
get: function () {
return this.i.n8;
},
set: function (v) {
this.i.n8 = v;
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgrImageColumn.prototype, "editorTextField", {
/**
* 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(IgrImageColumn.prototype, "editorValueField", {
/**
* Gets or sets the ComboBox value field.
*/
get: function () {
return this.i.oa;
},
set: function (v) {
this.i.oa = v;
},
enumerable: false,
configurable: true
});
return IgrImageColumn;
}(IgrDataGridColumn));
export { IgrImageColumn };