igniteui-react-grids
Version:
Ignite UI React grid components.
80 lines (79 loc) • 2.65 kB
JavaScript
import { CheckedChangedEventArgs as CheckedChangedEventArgs_internal } from "./CheckedChangedEventArgs";
import { ensureBool } from "igniteui-react-core";
var IgrCheckedChangedEventArgs = /** @class */ /*@__PURE__*/ (function () {
function IgrCheckedChangedEventArgs() {
this.mounted = false;
this._implementation = this.createImplementation();
this._implementation.externalObject = this;
this.onImplementationCreated();
if (this._initializeAdapters) {
this._initializeAdapters();
}
}
IgrCheckedChangedEventArgs.prototype.createImplementation = function () {
return new CheckedChangedEventArgs_internal();
};
Object.defineProperty(IgrCheckedChangedEventArgs.prototype, "nativeElement", {
get: function () {
return this._implementation.nativeElement;
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgrCheckedChangedEventArgs.prototype, "i", {
/**
* @hidden
*/
get: function () {
return this._implementation;
},
enumerable: false,
configurable: true
});
IgrCheckedChangedEventArgs.prototype.onImplementationCreated = function () {
};
IgrCheckedChangedEventArgs.prototype._provideImplementation = function (i) {
this._implementation = i;
this._implementation.externalObject = this;
this.onImplementationCreated();
if (this._initializeAdapters) {
this._initializeAdapters();
}
};
Object.defineProperty(IgrCheckedChangedEventArgs.prototype, "index", {
get: function () {
return this.i.c;
},
set: function (v) {
this.i.c = +v;
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgrCheckedChangedEventArgs.prototype, "isChecked", {
get: function () {
return this.i.b;
},
set: function (v) {
this.i.b = ensureBool(v);
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgrCheckedChangedEventArgs.prototype, "primaryKey", {
get: function () {
return this.i.a;
},
set: function (v) {
if (v && !Array.isArray(v) && typeof (v) == "string") {
var re = /\s*(?:,|\s|$)\s*/gm;
v = v.split(re);
}
this.i.a = v;
},
enumerable: false,
configurable: true
});
return IgrCheckedChangedEventArgs;
}());
export { IgrCheckedChangedEventArgs };