UNPKG

igniteui-react-grids

Version:

Ignite UI React grid components.

57 lines (56 loc) 1.69 kB
import { GridHeaderTemplateContext as GridHeaderTemplateContext_internal } from "./GridHeaderTemplateContext"; import { interfaceToInternal } from "igniteui-react-core"; import { HeaderType } from "./HeaderType"; export class IgrGridHeaderTemplateContext { createImplementation() { return new GridHeaderTemplateContext_internal(); } get nativeElement() { return this._implementation.nativeElement; } /** * @hidden */ get i() { return this._implementation; } onImplementationCreated() { } constructor() { this.mounted = false; this._implementation = this.createImplementation(); this._implementation.externalObject = this; this.onImplementationCreated(); if (this._initializeAdapters) { this._initializeAdapters(); } } _provideImplementation(i) { this._implementation = i; this._implementation.externalObject = this; this.onImplementationCreated(); if (this._initializeAdapters) { this._initializeAdapters(); } } get implicit() { return this.i.a.nativeElement; } set implicit(v) { this.i.a = interfaceToInternal(v, () => new HeaderType()); } findByName(name) { if (this.findEphemera) { if (name && name.indexOf("@@e:") == 0) { return this.findEphemera(name); } } if (this.implicit && this.implicit.name && this.implicit.name == name) { return this.implicit; } return null; } setNativeElement(element) { this.i.setNativeElement(element); } }