igniteui-react-core
Version:
Ignite UI React Core.
92 lines (91 loc) • 2.6 kB
JavaScript
import { ImageLoadStatus_$type } from "./ImageLoadStatus";
import { ensureEnum } from "./componentUtil";
/**
* Represents event arguments for updating label of callout layer
*/
var IgrImageLoadEventArgs = /** @class */ /*@__PURE__*/ (function () {
function IgrImageLoadEventArgs() {
this.mounted = false;
}
Object.defineProperty(IgrImageLoadEventArgs.prototype, "nativeElement", {
get: function () {
return this._implementation.nativeElement;
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgrImageLoadEventArgs.prototype, "i", {
/**
* @hidden
*/
get: function () {
return this._implementation;
},
enumerable: false,
configurable: true
});
IgrImageLoadEventArgs.prototype.onImplementationCreated = function () {
};
IgrImageLoadEventArgs.prototype._provideImplementation = function (i) {
this._implementation = i;
this._implementation.externalObject = this;
this.onImplementationCreated();
if (this._initializeAdapters) {
this._initializeAdapters();
}
};
Object.defineProperty(IgrImageLoadEventArgs.prototype, "status", {
/**
* Gets status of loading data
*/
get: function () {
return this.i.a;
},
set: function (v) {
this.i.a = ensureEnum(ImageLoadStatus_$type, v);
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgrImageLoadEventArgs.prototype, "path", {
/**
* Gets URL path of loaded data
*/
get: function () {
return this.i.d;
},
set: function (v) {
this.i.d = v;
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgrImageLoadEventArgs.prototype, "error", {
/**
* Gets error message on failed loading data
*/
get: function () {
return this.i.c;
},
set: function (v) {
this.i.c = v;
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgrImageLoadEventArgs.prototype, "data", {
/**
* Gets loaded data
*/
get: function () {
return this.i.b;
},
set: function (v) {
this.i.b = v;
},
enumerable: false,
configurable: true
});
return IgrImageLoadEventArgs;
}());
export { IgrImageLoadEventArgs };