UNPKG

igniteui-react-grids

Version:

Ignite UI React grid components.

84 lines (83 loc) 2.64 kB
import { __extends } from "tslib"; import { IgrCellInfo } from "./igr-cell-info"; import { SummaryCellModel as SummaryCellModel_internal } from "./SummaryCellModel"; import { brushToString, stringToBrush } from "igniteui-react-core"; import { FontInfo } from "igniteui-react-core"; /** * Backing information for a section header cell in the grid. */ var IgrSummaryCellInfo = /** @class */ /*@__PURE__*/ (function (_super) { __extends(IgrSummaryCellInfo, _super); function IgrSummaryCellInfo() { return _super.call(this) || this; } IgrSummaryCellInfo.prototype.createImplementation = function () { return new SummaryCellModel_internal(); }; Object.defineProperty(IgrSummaryCellInfo.prototype, "i", { /** * @hidden */ get: function () { return this._implementation; }, enumerable: false, configurable: true }); Object.defineProperty(IgrSummaryCellInfo.prototype, "resolvedSummaryLabel", { /** * Sets or gets the resolved summary label for the summary cell. */ get: function () { return this.i.mn; }, set: function (v) { this.i.mn = v; }, enumerable: false, configurable: true }); Object.defineProperty(IgrSummaryCellInfo.prototype, "resolvedSummaryValue", { /** * Sets or gets the resolved summary value for the sumamry cell. */ get: function () { return this.i.mp; }, set: function (v) { this.i.mp = v; }, enumerable: false, configurable: true }); Object.defineProperty(IgrSummaryCellInfo.prototype, "summaryLabelTextColor", { /** * Gets or sets the color of the text for the summary label in the cell. */ get: function () { return brushToString(this.i.mu); }, set: function (v) { this.i.mu = stringToBrush(v); }, enumerable: false, configurable: true }); Object.defineProperty(IgrSummaryCellInfo.prototype, "font", { get: function () { if (this.i.mg == null) { return null; } return this.i.mg.fontString; }, set: function (v) { var fi = new FontInfo(); fi.fontString = v; this.i.mg = fi; }, enumerable: false, configurable: true }); return IgrSummaryCellInfo; }(IgrCellInfo)); export { IgrSummaryCellInfo };