igniteui-react-grids
Version:
Ignite UI React grid components.
75 lines (74 loc) • 2.83 kB
JavaScript
import { IgrColumnSortDescriptionCollection } from "./igr-column-sort-description-collection";
import { GridSortDescriptionsChangedEventArgs as GridSortDescriptionsChangedEventArgs_internal } from "./GridSortDescriptionsChangedEventArgs";
/**
* Information about the current sorting applied to the grid.
*/
var IgrGridSortDescriptionsChangedEventArgs = /** @class */ /*@__PURE__*/ (function () {
function IgrGridSortDescriptionsChangedEventArgs() {
this.mounted = false;
this._implementation = this.createImplementation();
this._implementation.externalObject = this;
this.onImplementationCreated();
if (this._initializeAdapters) {
this._initializeAdapters();
}
}
IgrGridSortDescriptionsChangedEventArgs.prototype.createImplementation = function () {
return new GridSortDescriptionsChangedEventArgs_internal();
};
Object.defineProperty(IgrGridSortDescriptionsChangedEventArgs.prototype, "nativeElement", {
get: function () {
return this._implementation.nativeElement;
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgrGridSortDescriptionsChangedEventArgs.prototype, "i", {
/**
* @hidden
*/
get: function () {
return this._implementation;
},
enumerable: false,
configurable: true
});
IgrGridSortDescriptionsChangedEventArgs.prototype.onImplementationCreated = function () {
};
IgrGridSortDescriptionsChangedEventArgs.prototype._provideImplementation = function (i) {
this._implementation = i;
this._implementation.externalObject = this;
this.onImplementationCreated();
if (this._initializeAdapters) {
this._initializeAdapters();
}
};
Object.defineProperty(IgrGridSortDescriptionsChangedEventArgs.prototype, "sortDescriptions", {
get: function () {
var r = this.i.sortDescriptions;
if (r == null) {
return null;
}
if (!r.externalObject) {
var e = new IgrColumnSortDescriptionCollection();
if (r.$type) {
e._implementation = r;
}
else {
if (e.i.setNativeElement) {
e.i.setNativeElement(r);
}
}
r.externalObject = e;
}
return r.externalObject;
},
set: function (v) {
v == null ? this.i.sortDescriptions = null : this.i.sortDescriptions = v.i;
},
enumerable: false,
configurable: true
});
return IgrGridSortDescriptionsChangedEventArgs;
}());
export { IgrGridSortDescriptionsChangedEventArgs };