UNPKG

igniteui-react-grids

Version:

Ignite UI React grid components.

101 lines (100 loc) 2.68 kB
import { IgrDefinitionBase } from "./igr-definition-base"; import { brushToString, stringToBrush } from "igniteui-react-core"; import { FontInfo } from "igniteui-react-core"; export class IgrSummaryRow extends IgrDefinitionBase { /** * @hidden */ get i() { return this._implementation; } constructor(props) { super(props); } /** * Gets or sets the background color for summary cells when selected. */ get selectedBackground() { return brushToString(this.i.hv); } set selectedBackground(v) { this.i.hv = stringToBrush(v); } /** * Gets the actual background color for summary cells when selected. */ get actualSelectedBackground() { return brushToString(this.i.hs); } set actualSelectedBackground(v) { this.i.hs = stringToBrush(v); } /** * Gets or sets the text color for the summary labels. */ get summaryLabelTextColor() { return brushToString(this.i.hw); } set summaryLabelTextColor(v) { this.i.hw = stringToBrush(v); } /** * Gets the actual text color for the summary labels. */ get actualSummaryLabelTextColor() { return brushToString(this.i.ht); } set actualSummaryLabelTextColor(v) { this.i.ht = stringToBrush(v); } /** * Gets or sets the text style for the summary labels. */ get summaryNameTextStyle() { if (this.i.summaryNameTextStyle == null) { return null; } return this.i.summaryNameTextStyle.fontString; } set summaryNameTextStyle(v) { let fi = new FontInfo(); fi.fontString = v; this.i.summaryNameTextStyle = fi; } /** * Gets or sets the amount of left padding to use for the cell content for this column. */ get paddingLeft() { return this.i.g8; } set paddingLeft(v) { this.i.g8 = +v; } /** * Gets or sets the amount of top padding to use for the cell content for this column. */ get paddingTop() { return this.i.ha; } set paddingTop(v) { this.i.ha = +v; } /** * Gets or sets the amount of right padding to use for the cell content of this column. */ get paddingRight() { return this.i.g9; } set paddingRight(v) { this.i.g9 = +v; } /** * Gets or sets the amount of bottom padding to use for the cell content of this column. */ get paddingBottom() { return this.i.g7; } set paddingBottom(v) { this.i.g7 = +v; } }