UNPKG

igniteui-webcomponents-grids

Version:

Ignite UI Web Components grid components.

84 lines (83 loc) 2.66 kB
import { __extends } from "tslib"; import { IgcCellInfo } from "./igc-cell-info"; import { SummaryCellModel as SummaryCellModel_internal } from "./SummaryCellModel"; import { brushToString, stringToBrush } from "igniteui-webcomponents-core"; import { FontInfo } from "igniteui-webcomponents-core"; /** * Backing information for a section header cell in the grid. */ var IgcSummaryCellInfo = /** @class */ /*@__PURE__*/ (function (_super) { __extends(IgcSummaryCellInfo, _super); function IgcSummaryCellInfo() { return _super.call(this) || this; } IgcSummaryCellInfo.prototype.createImplementation = function () { return new SummaryCellModel_internal(); }; Object.defineProperty(IgcSummaryCellInfo.prototype, "i", { /** * @hidden */ get: function () { return this._implementation; }, enumerable: false, configurable: true }); Object.defineProperty(IgcSummaryCellInfo.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(IgcSummaryCellInfo.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(IgcSummaryCellInfo.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(IgcSummaryCellInfo.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 IgcSummaryCellInfo; }(IgcCellInfo)); export { IgcSummaryCellInfo };