igniteui-react-grids
Version:
Ignite UI React grid components.
55 lines (54 loc) • 2.25 kB
JavaScript
/*
THIS INFRAGISTICS ULTIMATE SOFTWARE LICENSE AGREEMENT ("AGREEMENT") LOCATED HERE:
https://www.infragistics.com/legal/license/igultimate-la
https://www.infragistics.com/legal/license/igultimate-eula
GOVERNS THE LICENSING, INSTALLATION AND USE OF INFRAGISTICS SOFTWARE. BY DOWNLOADING AND/OR INSTALLING AND USING INFRAGISTICS SOFTWARE: you are indicating that you have read and understand this Agreement, and agree to be legally bound by it on behalf of the yourself and your company.
*/
import { __extends } from "tslib";
import { GridCellBase } from "./GridCellBase";
import { markType } from "igniteui-react-core";
/**
* @hidden
*/
var SectionHeaderCell = /** @class */ /*@__PURE__*/ (function (_super) {
__extends(SectionHeaderCell, _super);
function SectionHeaderCell(a) {
var _this = _super.call(this, a) || this;
_this.ck = null;
_this.ck = a.createElement("span");
_this.ah.setRawStyleProperty("text-align", "left");
_this.ah.setRawStyleProperty("vertical-align", "middle");
_this.ah.setRawStyleProperty("overflow", "hidden");
_this.ah.setRawStyleProperty("white-space", "nowrap");
_this.ah.setRawStyleProperty("text-overflow", "ellipsis");
_this.ah.append(_this.ck);
return _this;
}
Object.defineProperty(SectionHeaderCell.prototype, "cl", {
get: function () {
return this.ck;
},
enumerable: false,
configurable: true
});
SectionHeaderCell.prototype.get_z = function () {
return true;
};
SectionHeaderCell.prototype.bs = function (a, b, c) {
_super.prototype.bs.call(this, a, b, c);
if (a == "Indent") {
this.ck.setRawStyleProperty("margin-left", this.a3 + this.a5 + 10 + "px");
}
if (a == "IsCollapsable") {
if (this.v) {
this.ck.setRawStyleProperty("margin-left", this.a3 + this.a5 + 10 + "px");
}
else {
this.ck.setRawStyleProperty("margin-left", "0px");
}
}
};
SectionHeaderCell.$t = markType(SectionHeaderCell, 'SectionHeaderCell', GridCellBase.$);
return SectionHeaderCell;
}(GridCellBase));
export { SectionHeaderCell };