igniteui-react-grids
Version:
Ignite UI React grid components.
94 lines (93 loc) • 3.29 kB
JavaScript
import { __extends } from "tslib";
import { SortIndicatorStyle_$type } from "./SortIndicatorStyle";
import { ColumnOptionsIconAlignment_$type } from "./ColumnOptionsIconAlignment";
import { ColumnOptionsIconBehavior_$type } from "./ColumnOptionsIconBehavior";
import { IgrTextCellInfo } from "./igr-text-cell-info";
import { TextHeaderCellModel as TextHeaderCellModel_internal } from "./TextHeaderCellModel";
import { ensureBool, ensureEnum, brushToString, stringToBrush } from "igniteui-react-core";
/**
* Backing information for a text header cell.
*/
var IgrTextHeaderCellInfo = /** @class */ /*@__PURE__*/ (function (_super) {
__extends(IgrTextHeaderCellInfo, _super);
function IgrTextHeaderCellInfo() {
return _super.call(this) || this;
}
IgrTextHeaderCellInfo.prototype.createImplementation = function () {
return new TextHeaderCellModel_internal();
};
Object.defineProperty(IgrTextHeaderCellInfo.prototype, "i", {
/**
* @hidden
*/
get: function () {
return this._implementation;
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgrTextHeaderCellInfo.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(IgrTextHeaderCellInfo.prototype, "sortIndicatorStyle", {
get: function () {
return this.i.mo;
},
set: function (v) {
this.i.mo = ensureEnum(SortIndicatorStyle_$type, v);
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgrTextHeaderCellInfo.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(IgrTextHeaderCellInfo.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(IgrTextHeaderCellInfo.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 IgrTextHeaderCellInfo;
}(IgrTextCellInfo));
export { IgrTextHeaderCellInfo };