igniteui-webcomponents-grids
Version:
Ignite UI Web Components grid components.
70 lines (69 loc) • 2.35 kB
JavaScript
import { __extends } from "tslib";
import { ImageStretchOptions_$type } from "./ImageStretchOptions";
import { ImageResourceType_$type } from "./ImageResourceType";
import { IgcCellInfo } from "./igc-cell-info";
import { ImageCellModel as ImageCellModel_internal } from "./ImageCellModel";
import { ensureEnum } from "igniteui-webcomponents-core";
/**
* Backing information for an image cell in the grid.
*/
var IgcImageCellInfo = /** @class */ /*@__PURE__*/ (function (_super) {
__extends(IgcImageCellInfo, _super);
function IgcImageCellInfo() {
return _super.call(this) || this;
}
IgcImageCellInfo.prototype.createImplementation = function () {
return new ImageCellModel_internal();
};
Object.defineProperty(IgcImageCellInfo.prototype, "i", {
/**
* @hidden
*/
get: function () {
return this._implementation;
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgcImageCellInfo.prototype, "imagePath", {
/**
* Sets or gets the resource path to use to get the image for the cell.
*/
get: function () {
return this.i.mn;
},
set: function (v) {
this.i.mn = v;
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgcImageCellInfo.prototype, "imageStretchOption", {
/**
* Sets or gets the image stretching behavior for the image.
*/
get: function () {
return this.i.mi;
},
set: function (v) {
this.i.mi = ensureEnum(ImageStretchOptions_$type, v);
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgcImageCellInfo.prototype, "imageResourceType", {
/**
* Sets or gets the image resource type. Indicates which type of resource should be fetched and how ImagePath should be interpreted.
*/
get: function () {
return this.i.mg;
},
set: function (v) {
this.i.mg = ensureEnum(ImageResourceType_$type, v);
},
enumerable: false,
configurable: true
});
return IgcImageCellInfo;
}(IgcCellInfo));
export { IgcImageCellInfo };