UNPKG

igniteui-react-grids

Version:

Ignite UI React grid components.

88 lines (87 loc) 2.4 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. */ export class IgrGridSelectionRangeDetail { createImplementation() { return new GridSelectionRangeDetail_internal(); } get nativeElement() { return this._implementation.nativeElement; } /** * @hidden */ get i() { return this._implementation; } onImplementationCreated() { } constructor() { this.mounted = false; this._implementation = this.createImplementation(); this._implementation.externalObject = this; this.onImplementationCreated(); if (this._initializeAdapters) { this._initializeAdapters(); } } _provideImplementation(i) { this._implementation = i; this._implementation.externalObject = this; this.onImplementationCreated(); if (this._initializeAdapters) { this._initializeAdapters(); } } /** * The index of the starting row of the selection range. */ get rowStart() { return this.i.f; } set rowStart(v) { this.i.f = +v; } /** * The index of the ending row of the selection range. */ get rowEnd() { return this.i.e; } set rowEnd(v) { this.i.e = +v; } /** * 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 columnStart() { return this.i.d; } set columnStart(v) { this.i.d = +v; } /** * 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 columnEnd() { return this.i.c; } set columnEnd(v) { this.i.c = +v; } findByName(name) { if (this.findEphemera) { if (name && name.indexOf("@@e:") == 0) { return this.findEphemera(name); } } return null; } setNativeElement(element) { this.i.setNativeElement(element); } }