igniteui-react-grids
Version:
Ignite UI React grid components.
82 lines (81 loc) • 2.16 kB
JavaScript
import { GroupSummaryDisplayMode_$type } from "./GroupSummaryDisplayMode";
import { IgrDefinitionBase } from "./igr-definition-base";
import { SectionHeader } from "./SectionHeader";
import { brushToString, stringToBrush, ensureBool, ensureEnum } from "igniteui-react-core";
/**
* Used to configure the appearance of the section header cells.
*/
export class IgrSectionHeader extends IgrDefinitionBase {
createImplementation() {
return new SectionHeader();
}
/**
* @hidden
*/
get i() {
return this._implementation;
}
constructor(props) {
super(props);
}
get selectedBackground() {
return brushToString(this.i.hs);
}
set selectedBackground(v) {
this.i.hs = stringToBrush(v);
}
get actualSelectedBackground() {
return brushToString(this.i.hr);
}
set actualSelectedBackground(v) {
this.i.hr = stringToBrush(v);
}
/**
* Gets or sets the amount of left padding to use for the cell content for this column.
*/
get paddingLeft() {
return this.i.ha;
}
set paddingLeft(v) {
this.i.ha = +v;
}
/**
* Gets or sets the amount of top padding to use for the cell content for this column.
*/
get paddingTop() {
return this.i.hc;
}
set paddingTop(v) {
this.i.hc = +v;
}
/**
* Gets or sets the amount of right padding to use for the cell content of this column.
*/
get paddingRight() {
return this.i.hb;
}
set paddingRight(v) {
this.i.hb = +v;
}
/**
* Gets or sets the amount of bottom padding to use for the cell content of this column.
*/
get paddingBottom() {
return this.i.g9;
}
set paddingBottom(v) {
this.i.g9 = +v;
}
get isCollapsable() {
return this.i.g3;
}
set isCollapsable(v) {
this.i.g3 = ensureBool(v);
}
get summaryDisplayMode() {
return this.i.g0;
}
set summaryDisplayMode(v) {
this.i.g0 = ensureEnum(GroupSummaryDisplayMode_$type, v);
}
}