UNPKG

igniteui-angular-core

Version:

Ignite UI Angular Core logic used in multiple UI components.

59 lines (55 loc) 1.42 kB
import { IgxDataLegendSeriesValueInfo } from "./igx-data-legend-series-value-info"; import { DataLegendSummaryColumn as DataLegendSummaryColumn_internal } from "./DataLegendSummaryColumn"; /** * Represent a column in summary row */ export class IgxDataLegendSummaryColumn extends IgxDataLegendSeriesValueInfo { constructor() { super(); } createImplementation() { return new DataLegendSummaryColumn_internal(); } /** * @hidden */ get i() { return this._implementation; } /** * Get values of series in the summary column */ get seriesValues() { return this.i.ac; } /** * Get labels rendered on left side of series values, e.g. "H:" for High, "L:" for Low */ get seriesLabels() { return this.i.aa; } /** * Get optional units on right side of series values, e.g. "Hz" for hertz */ get seriesUnits() { return this.i.ab; } /** * Add a value in the summary column */ addValue(value) { this.i.ak(value); } /** * Add label in the summary column */ addLabel(label) { this.i.ai(label); } /** * Add unit in the summary column */ addUnits(units) { this.i.aj(units); } }