igniteui-react-grids
Version:
Ignite UI React grid components.
71 lines (70 loc) • 2.61 kB
JavaScript
import { GridHeaderTemplateContext as GridHeaderTemplateContext_internal } from "./GridHeaderTemplateContext";
import { interfaceToInternal } from "igniteui-react-core";
import { HeaderType } from "./HeaderType";
var IgrGridHeaderTemplateContext = /** @class */ /*@__PURE__*/ (function () {
function IgrGridHeaderTemplateContext() {
this.mounted = false;
this._implementation = this.createImplementation();
this._implementation.externalObject = this;
this.onImplementationCreated();
if (this._initializeAdapters) {
this._initializeAdapters();
}
}
IgrGridHeaderTemplateContext.prototype.createImplementation = function () {
return new GridHeaderTemplateContext_internal();
};
Object.defineProperty(IgrGridHeaderTemplateContext.prototype, "nativeElement", {
get: function () {
return this._implementation.nativeElement;
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgrGridHeaderTemplateContext.prototype, "i", {
/**
* @hidden
*/
get: function () {
return this._implementation;
},
enumerable: false,
configurable: true
});
IgrGridHeaderTemplateContext.prototype.onImplementationCreated = function () {
};
IgrGridHeaderTemplateContext.prototype._provideImplementation = function (i) {
this._implementation = i;
this._implementation.externalObject = this;
this.onImplementationCreated();
if (this._initializeAdapters) {
this._initializeAdapters();
}
};
Object.defineProperty(IgrGridHeaderTemplateContext.prototype, "implicit", {
get: function () {
return this.i.a.nativeElement;
},
set: function (v) {
this.i.a = interfaceToInternal(v, function () { return new HeaderType(); });
},
enumerable: false,
configurable: true
});
IgrGridHeaderTemplateContext.prototype.findByName = function (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;
};
IgrGridHeaderTemplateContext.prototype.setNativeElement = function (element) {
this.i.setNativeElement(element);
};
return IgrGridHeaderTemplateContext;
}());
export { IgrGridHeaderTemplateContext };