igniteui-react-grids
Version:
Ignite UI React grid components.
39 lines (38 loc) • 1.59 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 { CellPresenterBase } from "./CellPresenterBase";
import { CellModel } from "./CellModel";
import { markType } from "igniteui-react-core";
/**
* @hidden
*/
export let TemplateHeaderCellPresenter = /*@__PURE__*/ (() => {
class TemplateHeaderCellPresenter extends CellPresenterBase {
get e() {
return this.a;
}
constructor(a, b) {
super(a);
this.d = null;
this.d = b;
}
b(a) {
super.b(a);
let b = this.d.actualColumns._inner[a.l.a5];
let c = b.header;
if (a.a8(CellModel.fa) || a.a8(CellModel.hc)) {
let d = Math.min(1, Math.max(0, a.ct));
let e = a.cj * (1 - d);
this.e.cl.element.setRawStyleProperty("opacity", e.toString());
}
let f = a;
c.hq(f, this.e.cl);
}
}
TemplateHeaderCellPresenter.$t = /*@__PURE__*/ markType(TemplateHeaderCellPresenter, 'TemplateHeaderCellPresenter', CellPresenterBase.$);
return TemplateHeaderCellPresenter;
})();