igniteui-react-grids
Version:
Ignite UI React grid components.
60 lines (59 loc) • 1.55 kB
JavaScript
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.
*/
export class IgrSummaryCellInfo extends IgrCellInfo {
createImplementation() {
return new SummaryCellModel_internal();
}
/**
* @hidden
*/
get i() {
return this._implementation;
}
constructor() {
super();
}
/**
* Sets or gets the resolved summary label for the summary cell.
*/
get resolvedSummaryLabel() {
return this.i.mn;
}
set resolvedSummaryLabel(v) {
this.i.mn = v;
}
/**
* Sets or gets the resolved summary value for the sumamry cell.
*/
get resolvedSummaryValue() {
return this.i.mp;
}
set resolvedSummaryValue(v) {
this.i.mp = v;
}
/**
* Gets or sets the color of the text for the summary label in the cell.
*/
get summaryLabelTextColor() {
return brushToString(this.i.mu);
}
set summaryLabelTextColor(v) {
this.i.mu = stringToBrush(v);
}
get font() {
if (this.i.mg == null) {
return null;
}
return this.i.mg.fontString;
}
set font(v) {
let fi = new FontInfo();
fi.fontString = v;
this.i.mg = fi;
}
}