igniteui-react-grids
Version:
Ignite UI React grid components.
73 lines (72 loc) • 2.48 kB
JavaScript
import { GridTemplateContext as GridTemplateContext_internal } from "./GridTemplateContext";
var IgrGridTemplateContext = /** @class */ /*@__PURE__*/ (function () {
function IgrGridTemplateContext() {
this.mounted = false;
this._implementation = this.createImplementation();
this._implementation.externalObject = this;
this.onImplementationCreated();
if (this._initializeAdapters) {
this._initializeAdapters();
}
}
IgrGridTemplateContext.prototype.createImplementation = function () {
return new GridTemplateContext_internal();
};
Object.defineProperty(IgrGridTemplateContext.prototype, "nativeElement", {
get: function () {
return this._implementation.nativeElement;
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgrGridTemplateContext.prototype, "i", {
/**
* @hidden
*/
get: function () {
return this._implementation;
},
enumerable: false,
configurable: true
});
IgrGridTemplateContext.prototype.onImplementationCreated = function () {
};
IgrGridTemplateContext.prototype._provideImplementation = function (i) {
this._implementation = i;
this._implementation.externalObject = this;
this.onImplementationCreated();
if (this._initializeAdapters) {
this._initializeAdapters();
}
};
Object.defineProperty(IgrGridTemplateContext.prototype, "implicit", {
get: function () {
var r = this.i.a;
if (r == null) {
return null;
}
return r.externalObject;
},
set: function (v) {
v == null ? this.i.a = null : this.i.a = v.i;
},
enumerable: false,
configurable: true
});
IgrGridTemplateContext.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;
};
IgrGridTemplateContext.prototype.setNativeElement = function (element) {
this.i.setNativeElement(element);
};
return IgrGridTemplateContext;
}());
export { IgrGridTemplateContext };