UNPKG

igniteui-angular-core

Version:

Ignite UI Angular Core logic used in multiple UI components.

79 lines (75 loc) 2.56 kB
import { __extends } from "tslib"; import { IgxDataLegendSeriesValueInfo } from "./igx-data-legend-series-value-info"; import { DataLegendSummaryColumn as DataLegendSummaryColumn_internal } from "./DataLegendSummaryColumn"; /** * Represent a column in summary row */ var IgxDataLegendSummaryColumn = /** @class */ /*@__PURE__*/ (function (_super) { __extends(IgxDataLegendSummaryColumn, _super); function IgxDataLegendSummaryColumn() { return _super.call(this) || this; } IgxDataLegendSummaryColumn.prototype.createImplementation = function () { return new DataLegendSummaryColumn_internal(); }; Object.defineProperty(IgxDataLegendSummaryColumn.prototype, "i", { /** * @hidden */ get: function () { return this._implementation; }, enumerable: false, configurable: true }); Object.defineProperty(IgxDataLegendSummaryColumn.prototype, "seriesValues", { /** * Get values of series in the summary column */ get: function () { return this.i.ac; }, enumerable: false, configurable: true }); Object.defineProperty(IgxDataLegendSummaryColumn.prototype, "seriesLabels", { /** * Get labels rendered on left side of series values, e.g. "H:" for High, "L:" for Low */ get: function () { return this.i.aa; }, enumerable: false, configurable: true }); Object.defineProperty(IgxDataLegendSummaryColumn.prototype, "seriesUnits", { /** * Get optional units on right side of series values, e.g. "Hz" for hertz */ get: function () { return this.i.ab; }, enumerable: false, configurable: true }); /** * Add a value in the summary column */ IgxDataLegendSummaryColumn.prototype.addValue = function (value) { this.i.ak(value); }; /** * Add label in the summary column */ IgxDataLegendSummaryColumn.prototype.addLabel = function (label) { this.i.ai(label); }; /** * Add unit in the summary column */ IgxDataLegendSummaryColumn.prototype.addUnits = function (units) { this.i.aj(units); }; return IgxDataLegendSummaryColumn; }(IgxDataLegendSeriesValueInfo)); export { IgxDataLegendSummaryColumn };