igniteui-react-grids
Version:
Ignite UI React grid components.
124 lines (123 loc) • 3.77 kB
JavaScript
import { __extends } from "tslib";
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.
*/
var IgrHeader = /** @class */ /*@__PURE__*/ (function (_super) {
__extends(IgrHeader, _super);
function IgrHeader(props) {
return _super.call(this, props) || this;
}
Object.defineProperty(IgrHeader.prototype, "i", {
/**
* @hidden
*/
get: function () {
return this._implementation;
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgrHeader.prototype, "sortIndicatorColor", {
/**
* Gets or sets the color to use for the sort indicator icon
*/
get: function () {
return brushToString(this.i.ho);
},
set: function (v) {
this.i.ho = stringToBrush(v);
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgrHeader.prototype, "actualSortIndicatorColor", {
/**
* Gets the actual background color that is used for the cells when they are selected
*/
get: function () {
return brushToString(this.i.hm);
},
set: function (v) {
this.i.hm = stringToBrush(v);
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgrHeader.prototype, "sortIndicatorStyle", {
get: function () {
return this.i.g1;
},
set: function (v) {
this.i.g1 = ensureEnum(SortIndicatorStyle_$type, v);
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgrHeader.prototype, "actualSortIndicatorStyle", {
get: function () {
return this.i.g0;
},
set: function (v) {
this.i.g0 = ensureEnum(SortIndicatorStyle_$type, v);
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgrHeader.prototype, "paddingLeft", {
/**
* Gets or sets the amount of left padding to use for the cell content.
*/
get: function () {
return this.i.g7;
},
set: function (v) {
this.i.g7 = +v;
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgrHeader.prototype, "paddingTop", {
/**
* Gets or sets the amount of top padding to use for the cell content.
*/
get: function () {
return this.i.g9;
},
set: function (v) {
this.i.g9 = +v;
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgrHeader.prototype, "paddingRight", {
/**
* Gets or sets the amount of right padding to use for the cell content.
*/
get: function () {
return this.i.g8;
},
set: function (v) {
this.i.g8 = +v;
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgrHeader.prototype, "paddingBottom", {
/**
* Gets or sets the amount of bottom padding to use for the cell content.
*/
get: function () {
return this.i.g6;
},
set: function (v) {
this.i.g6 = +v;
},
enumerable: false,
configurable: true
});
return IgrHeader;
}(IgrDefinitionBase));
export { IgrHeader };