UNPKG

igniteui-react-grids

Version:

Ignite UI React grid components.

66 lines (65 loc) 2.06 kB
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. */ export class IgrTextHeaderCellInfo extends IgrTextCellInfo { createImplementation() { return new TextHeaderCellModel_internal(); } /** * @hidden */ get i() { return this._implementation; } constructor() { super(); } /** * Sets or gets whether the filter UI should be visible in the header. */ get isColumnOptionsEnabled() { return this.i.mq; } set isColumnOptionsEnabled(v) { this.i.mq = ensureBool(v); } get sortIndicatorStyle() { return this.i.mo; } set sortIndicatorStyle(v) { this.i.mo = ensureEnum(SortIndicatorStyle_$type, v); } /** * Gets or sets the alignment of the column options icon within the header cell. */ get columnOptionsIconAlignment() { return this.i.mk; } set columnOptionsIconAlignment(v) { this.i.mk = ensureEnum(ColumnOptionsIconAlignment_$type, v); } /** * Gets or sets the color for the column options icon in the header. */ get columnOptionsIconColor() { return brushToString(this.i.m2); } set columnOptionsIconColor(v) { this.i.m2 = stringToBrush(v); } /** * Gets or sets how the column option icon will behave in the header. */ get columnOptionsIconBehavior() { return this.i.mm; } set columnOptionsIconBehavior(v) { this.i.mm = ensureEnum(ColumnOptionsIconBehavior_$type, v); } }