UNPKG

igniteui-react-grids

Version:

Ignite UI React grid components.

122 lines (121 loc) 3.84 kB
import { __extends } from "tslib"; 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. */ var IgrSectionHeader = /** @class */ /*@__PURE__*/ (function (_super) { __extends(IgrSectionHeader, _super); function IgrSectionHeader(props) { return _super.call(this, props) || this; } IgrSectionHeader.prototype.createImplementation = function () { return new SectionHeader(); }; Object.defineProperty(IgrSectionHeader.prototype, "i", { /** * @hidden */ get: function () { return this._implementation; }, enumerable: false, configurable: true }); Object.defineProperty(IgrSectionHeader.prototype, "selectedBackground", { get: function () { return brushToString(this.i.hs); }, set: function (v) { this.i.hs = stringToBrush(v); }, enumerable: false, configurable: true }); Object.defineProperty(IgrSectionHeader.prototype, "actualSelectedBackground", { get: function () { return brushToString(this.i.hr); }, set: function (v) { this.i.hr = stringToBrush(v); }, enumerable: false, configurable: true }); Object.defineProperty(IgrSectionHeader.prototype, "paddingLeft", { /** * Gets or sets the amount of left padding to use for the cell content for this column. */ get: function () { return this.i.ha; }, set: function (v) { this.i.ha = +v; }, enumerable: false, configurable: true }); Object.defineProperty(IgrSectionHeader.prototype, "paddingTop", { /** * Gets or sets the amount of top padding to use for the cell content for this column. */ get: function () { return this.i.hc; }, set: function (v) { this.i.hc = +v; }, enumerable: false, configurable: true }); Object.defineProperty(IgrSectionHeader.prototype, "paddingRight", { /** * Gets or sets the amount of right padding to use for the cell content of this column. */ get: function () { return this.i.hb; }, set: function (v) { this.i.hb = +v; }, enumerable: false, configurable: true }); Object.defineProperty(IgrSectionHeader.prototype, "paddingBottom", { /** * Gets or sets the amount of bottom padding to use for the cell content of this column. */ get: function () { return this.i.g9; }, set: function (v) { this.i.g9 = +v; }, enumerable: false, configurable: true }); Object.defineProperty(IgrSectionHeader.prototype, "isCollapsable", { get: function () { return this.i.g3; }, set: function (v) { this.i.g3 = ensureBool(v); }, enumerable: false, configurable: true }); Object.defineProperty(IgrSectionHeader.prototype, "summaryDisplayMode", { get: function () { return this.i.g0; }, set: function (v) { this.i.g0 = ensureEnum(GroupSummaryDisplayMode_$type, v); }, enumerable: false, configurable: true }); return IgrSectionHeader; }(IgrDefinitionBase)); export { IgrSectionHeader };