UNPKG

igniteui-react-grids

Version:

Ignite UI React grid components.

50 lines (49 loc) 1.44 kB
import { ImageStretchOptions_$type } from "./ImageStretchOptions"; import { ImageResourceType_$type } from "./ImageResourceType"; import { IgrCellInfo } from "./igr-cell-info"; import { ImageCellModel as ImageCellModel_internal } from "./ImageCellModel"; import { ensureEnum } from "igniteui-react-core"; /** * Backing information for an image cell in the grid. */ export class IgrImageCellInfo extends IgrCellInfo { createImplementation() { return new ImageCellModel_internal(); } /** * @hidden */ get i() { return this._implementation; } constructor() { super(); } /** * Sets or gets the resource path to use to get the image for the cell. */ get imagePath() { return this.i.mn; } set imagePath(v) { this.i.mn = v; } /** * Sets or gets the image stretching behavior for the image. */ get imageStretchOption() { return this.i.mi; } set imageStretchOption(v) { this.i.mi = ensureEnum(ImageStretchOptions_$type, v); } /** * Sets or gets the image resource type. Indicates which type of resource should be fetched and how ImagePath should be interpreted. */ get imageResourceType() { return this.i.mg; } set imageResourceType(v) { this.i.mg = ensureEnum(ImageResourceType_$type, v); } }