UNPKG

igniteui-webcomponents-grids

Version:

Ignite UI Web Components grid components.

94 lines (93 loc) 3.3 kB
import { __extends } from "tslib"; import { SortIndicatorStyle_$type } from "./SortIndicatorStyle"; import { ColumnOptionsIconAlignment_$type } from "./ColumnOptionsIconAlignment"; import { ColumnOptionsIconBehavior_$type } from "./ColumnOptionsIconBehavior"; import { IgcTextCellInfo } from "./igc-text-cell-info"; import { TextHeaderCellModel as TextHeaderCellModel_internal } from "./TextHeaderCellModel"; import { ensureBool, ensureEnum, brushToString, stringToBrush } from "igniteui-webcomponents-core"; /** * Backing information for a text header cell. */ var IgcTextHeaderCellInfo = /** @class */ /*@__PURE__*/ (function (_super) { __extends(IgcTextHeaderCellInfo, _super); function IgcTextHeaderCellInfo() { return _super.call(this) || this; } IgcTextHeaderCellInfo.prototype.createImplementation = function () { return new TextHeaderCellModel_internal(); }; Object.defineProperty(IgcTextHeaderCellInfo.prototype, "i", { /** * @hidden */ get: function () { return this._implementation; }, enumerable: false, configurable: true }); Object.defineProperty(IgcTextHeaderCellInfo.prototype, "isColumnOptionsEnabled", { /** * Sets or gets whether the filter UI should be visible in the header. */ get: function () { return this.i.mq; }, set: function (v) { this.i.mq = ensureBool(v); }, enumerable: false, configurable: true }); Object.defineProperty(IgcTextHeaderCellInfo.prototype, "sortIndicatorStyle", { get: function () { return this.i.mo; }, set: function (v) { this.i.mo = ensureEnum(SortIndicatorStyle_$type, v); }, enumerable: false, configurable: true }); Object.defineProperty(IgcTextHeaderCellInfo.prototype, "columnOptionsIconAlignment", { /** * Gets or sets the alignment of the column options icon within the header cell. */ get: function () { return this.i.mk; }, set: function (v) { this.i.mk = ensureEnum(ColumnOptionsIconAlignment_$type, v); }, enumerable: false, configurable: true }); Object.defineProperty(IgcTextHeaderCellInfo.prototype, "columnOptionsIconColor", { /** * Gets or sets the color for the column options icon in the header. */ get: function () { return brushToString(this.i.m2); }, set: function (v) { this.i.m2 = stringToBrush(v); }, enumerable: false, configurable: true }); Object.defineProperty(IgcTextHeaderCellInfo.prototype, "columnOptionsIconBehavior", { /** * Gets or sets how the column option icon will behave in the header. */ get: function () { return this.i.mm; }, set: function (v) { this.i.mm = ensureEnum(ColumnOptionsIconBehavior_$type, v); }, enumerable: false, configurable: true }); return IgcTextHeaderCellInfo; }(IgcTextCellInfo)); export { IgcTextHeaderCellInfo };