igniteui-react-grids
Version:
Ignite UI React grid components.
79 lines (78 loc) • 2.52 kB
JavaScript
import { GridCellPosition as GridCellPosition_internal } from "./GridCellPosition";
var IgrGridCellPosition = /** @class */ /*@__PURE__*/ (function () {
function IgrGridCellPosition() {
this.mounted = false;
this._implementation = this.createImplementation();
this._implementation.externalObject = this;
this.onImplementationCreated();
if (this._initializeAdapters) {
this._initializeAdapters();
}
}
IgrGridCellPosition.prototype.createImplementation = function () {
return new GridCellPosition_internal();
};
Object.defineProperty(IgrGridCellPosition.prototype, "nativeElement", {
get: function () {
return this._implementation.nativeElement;
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgrGridCellPosition.prototype, "i", {
/**
* @hidden
*/
get: function () {
return this._implementation;
},
enumerable: false,
configurable: true
});
IgrGridCellPosition.prototype.onImplementationCreated = function () {
};
IgrGridCellPosition.prototype._provideImplementation = function (i) {
this._implementation = i;
this._implementation.externalObject = this;
this.onImplementationCreated();
if (this._initializeAdapters) {
this._initializeAdapters();
}
};
Object.defineProperty(IgrGridCellPosition.prototype, "rowIndex", {
/**
* Gets or sets the row position of the cell.
*/
get: function () {
return this.i.b;
},
set: function (v) {
this.i.b = +v;
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgrGridCellPosition.prototype, "columnUniqueKey", {
/**
* Gets or sets the column position of the cell. Can be null for spanning elements like section headers.
*/
get: function () {
return this.i.d;
},
set: function (v) {
this.i.d = v;
},
enumerable: false,
configurable: true
});
IgrGridCellPosition.prototype.findByName = function (name) {
if (this.findEphemera) {
if (name && name.indexOf("@@e:") == 0) {
return this.findEphemera(name);
}
}
return null;
};
return IgrGridCellPosition;
}());
export { IgrGridCellPosition };