igniteui-react-grids
Version:
Ignite UI React grid components.
57 lines (56 loc) • 2.44 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 { CanvasCellPresenterBase } from "./CanvasCellPresenterBase";
import { SectionHeaderCellModel } from "./SectionHeaderCellModel";
import { markType } from "igniteui-react-core";
import { CanvasContentCellModelHelper } from "./CanvasContentCellModelHelper";
/**
* @hidden
*/
var CanvasSectionHeaderCellPresenter = /** @class */ /*@__PURE__*/ (function (_super) {
__extends(CanvasSectionHeaderCellPresenter, _super);
function CanvasSectionHeaderCellPresenter(a) {
return _super.call(this, a) || this;
}
Object.defineProperty(CanvasSectionHeaderCellPresenter.prototype, "d", {
get: function () {
return this.a;
},
enumerable: false,
configurable: true
});
CanvasSectionHeaderCellPresenter.prototype.b = function (a) {
_super.prototype.b.call(this, a);
var b = a;
if (a.a3) {
if (a.a8(SectionHeaderCellModel.ml) || a.a8(SectionHeaderCellModel.mn)) {
if (b.mh == null || (b.mh.length == 0 && b.mv == null)) {
if (b.hm == null) {
b.j1 = "";
}
else {
b.j1 = b.hm.toString();
}
}
else {
if (b.mt != null && b.mk == 0) {
b.j1 = b.mv + " " + b.mt;
}
else {
b.j1 = b.mv;
}
}
this.d.cr(b.j1);
}
CanvasContentCellModelHelper.a(this.a.bq, b, this.a);
}
};
CanvasSectionHeaderCellPresenter.$t = markType(CanvasSectionHeaderCellPresenter, 'CanvasSectionHeaderCellPresenter', CanvasCellPresenterBase.$);
return CanvasSectionHeaderCellPresenter;
}(CanvasCellPresenterBase));
export { CanvasSectionHeaderCellPresenter };