UNPKG

igniteui-react-grids

Version:

Ignite UI React grid components.

53 lines (52 loc) 2.12 kB
/* THIS INFRAGISTICS ULTIMATE SOFTWARE LICENSE AGREEMENT ("AGREEMENT") LOCATED HERE: https://www.infragistics.com/legal/license/igultimate-la https://www.infragistics.com/legal/license/igultimate-eula GOVERNS THE LICENSING, INSTALLATION AND USE OF INFRAGISTICS SOFTWARE. BY DOWNLOADING AND/OR INSTALLING AND USING INFRAGISTICS SOFTWARE: you are indicating that you have read and understand this Agreement, and agree to be legally bound by it on behalf of the yourself and your company. */ import { __extends } from "tslib"; import { CanvasCellPresenterBase } from "./CanvasCellPresenterBase"; import { CellModel } from "./CellModel"; import { TextCellModel } from "./TextCellModel"; import { markType } from "igniteui-react-core"; import { CanvasContentCellModelHelper } from "./CanvasContentCellModelHelper"; /** * @hidden */ var CanvasTextCellPresenter = /** @class */ /*@__PURE__*/ (function (_super) { __extends(CanvasTextCellPresenter, _super); function CanvasTextCellPresenter(a) { return _super.call(this, a) || this; } Object.defineProperty(CanvasTextCellPresenter.prototype, "d", { get: function () { return this.a; }, enumerable: false, configurable: true }); CanvasTextCellPresenter.prototype.b = function (a) { _super.prototype.b.call(this, a); var b = a; if (a.a3) { if (a.a8(TextCellModel.mf) || a.a8(CellModel.gj)) { if (b.mh != null) { b.j1 = b.mh; } else { if (b.hm == null) { b.j1 = ""; } else { b.j1 = b.hm.toString(); } } this.d.cr(b.j1); } CanvasContentCellModelHelper.a(this.a.bq, b, this.a); } }; CanvasTextCellPresenter.$t = markType(CanvasTextCellPresenter, 'CanvasTextCellPresenter', CanvasCellPresenterBase.$); return CanvasTextCellPresenter; }(CanvasCellPresenterBase)); export { CanvasTextCellPresenter };