UNPKG

igniteui-react-grids

Version:

Ignite UI React grid components.

49 lines (48 loc) 1.98 kB
/* 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 { GridCellBase } from "./GridCellBase"; import { markType } from "igniteui-react-core"; /** * @hidden */ export let SectionHeaderCell = /*@__PURE__*/ (() => { class SectionHeaderCell extends GridCellBase { get cl() { return this.ck; } constructor(a) { super(a); 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); } get_z() { return true; } bs(a, b, c) { super.bs(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 = /*@__PURE__*/ markType(SectionHeaderCell, 'SectionHeaderCell', GridCellBase.$); return SectionHeaderCell; })();