igniteui-react-grids
Version:
Ignite UI React grid components.
84 lines (83 loc) • 2.2 kB
JavaScript
import { SortIndicatorStyle_$type } from "./SortIndicatorStyle";
import { IgrDefinitionBase } from "./igr-definition-base";
import { brushToString, stringToBrush, ensureEnum } from "igniteui-react-core";
/**
* Represents a base class used to configure the appearance of the column header cells.
*/
export class IgrHeader extends IgrDefinitionBase {
/**
* @hidden
*/
get i() {
return this._implementation;
}
constructor(props) {
super(props);
}
/**
* Gets or sets the color to use for the sort indicator icon
*/
get sortIndicatorColor() {
return brushToString(this.i.ho);
}
set sortIndicatorColor(v) {
this.i.ho = stringToBrush(v);
}
/**
* Gets the actual background color that is used for the cells when they are selected
*/
get actualSortIndicatorColor() {
return brushToString(this.i.hm);
}
set actualSortIndicatorColor(v) {
this.i.hm = stringToBrush(v);
}
get sortIndicatorStyle() {
return this.i.g1;
}
set sortIndicatorStyle(v) {
this.i.g1 = ensureEnum(SortIndicatorStyle_$type, v);
}
get actualSortIndicatorStyle() {
return this.i.g0;
}
set actualSortIndicatorStyle(v) {
this.i.g0 = ensureEnum(SortIndicatorStyle_$type, v);
}
/**
* Gets or sets the amount of left padding to use for the cell content.
*/
get paddingLeft() {
return this.i.g7;
}
set paddingLeft(v) {
this.i.g7 = +v;
}
/**
* Gets or sets the amount of top padding to use for the cell content.
*/
get paddingTop() {
return this.i.g9;
}
set paddingTop(v) {
this.i.g9 = +v;
}
/**
* Gets or sets the amount of right padding to use for the cell content.
*/
get paddingRight() {
return this.i.g8;
}
set paddingRight(v) {
this.i.g8 = +v;
}
/**
* Gets or sets the amount of bottom padding to use for the cell content.
*/
get paddingBottom() {
return this.i.g6;
}
set paddingBottom(v) {
this.i.g6 = +v;
}
}