UNPKG

igniteui-react-grids

Version:

Ignite UI React grid components.

114 lines (113 loc) 3.86 kB
import { GridSelectionRangeDetail as GridSelectionRangeDetail_internal } from "./GridSelectionRangeDetail"; /** * Represents a range selection between certain rows and columns of the grid. * Range selection can be made either through drag selection or through keyboard selection. */ var IgrGridSelectionRangeDetail = /** @class */ /*@__PURE__*/ (function () { function IgrGridSelectionRangeDetail() { this.mounted = false; this._implementation = this.createImplementation(); this._implementation.externalObject = this; this.onImplementationCreated(); if (this._initializeAdapters) { this._initializeAdapters(); } } IgrGridSelectionRangeDetail.prototype.createImplementation = function () { return new GridSelectionRangeDetail_internal(); }; Object.defineProperty(IgrGridSelectionRangeDetail.prototype, "nativeElement", { get: function () { return this._implementation.nativeElement; }, enumerable: false, configurable: true }); Object.defineProperty(IgrGridSelectionRangeDetail.prototype, "i", { /** * @hidden */ get: function () { return this._implementation; }, enumerable: false, configurable: true }); IgrGridSelectionRangeDetail.prototype.onImplementationCreated = function () { }; IgrGridSelectionRangeDetail.prototype._provideImplementation = function (i) { this._implementation = i; this._implementation.externalObject = this; this.onImplementationCreated(); if (this._initializeAdapters) { this._initializeAdapters(); } }; Object.defineProperty(IgrGridSelectionRangeDetail.prototype, "rowStart", { /** * The index of the starting row of the selection range. */ get: function () { return this.i.f; }, set: function (v) { this.i.f = +v; }, enumerable: false, configurable: true }); Object.defineProperty(IgrGridSelectionRangeDetail.prototype, "rowEnd", { /** * The index of the ending row of the selection range. */ get: function () { return this.i.e; }, set: function (v) { this.i.e = +v; }, enumerable: false, configurable: true }); Object.defineProperty(IgrGridSelectionRangeDetail.prototype, "columnStart", { /** * The identifier or index of the starting column of the selection range. * It can be either a string representing the column's field name or a numeric index. */ get: function () { return this.i.d; }, set: function (v) { this.i.d = +v; }, enumerable: false, configurable: true }); Object.defineProperty(IgrGridSelectionRangeDetail.prototype, "columnEnd", { /** * The identifier or index of the ending column of the selection range. * It can be either a string representing the column's field name or a numeric index. */ get: function () { return this.i.c; }, set: function (v) { this.i.c = +v; }, enumerable: false, configurable: true }); IgrGridSelectionRangeDetail.prototype.findByName = function (name) { if (this.findEphemera) { if (name && name.indexOf("@@e:") == 0) { return this.findEphemera(name); } } return null; }; IgrGridSelectionRangeDetail.prototype.setNativeElement = function (element) { this.i.setNativeElement(element); }; return IgrGridSelectionRangeDetail; }()); export { IgrGridSelectionRangeDetail };