UNPKG

igniteui-react-grids

Version:

Ignite UI React grid components.

69 lines (68 loc) 2.17 kB
import { ColumnExchanger as ColumnExchanger_internal } from "./ColumnExchanger"; /** * Indicates a column that should be exchanged with another. */ var IgrColumnExchanger = /** @class */ /*@__PURE__*/ (function () { function IgrColumnExchanger() { this.mounted = false; this._implementation = this.createImplementation(); this._implementation.externalObject = this; this.onImplementationCreated(); if (this._initializeAdapters) { this._initializeAdapters(); } } IgrColumnExchanger.prototype.createImplementation = function () { return new ColumnExchanger_internal(0); }; Object.defineProperty(IgrColumnExchanger.prototype, "nativeElement", { get: function () { return this._implementation.nativeElement; }, enumerable: false, configurable: true }); Object.defineProperty(IgrColumnExchanger.prototype, "i", { /** * @hidden */ get: function () { return this._implementation; }, enumerable: false, configurable: true }); IgrColumnExchanger.prototype.onImplementationCreated = function () { }; IgrColumnExchanger.prototype._provideImplementation = function (i) { this._implementation = i; this._implementation.externalObject = this; this.onImplementationCreated(); if (this._initializeAdapters) { this._initializeAdapters(); } }; Object.defineProperty(IgrColumnExchanger.prototype, "targetIndex", { /** * The desired location of the new column */ get: function () { return this.i.b; }, set: function (v) { this.i.b = +v; }, enumerable: false, configurable: true }); IgrColumnExchanger.prototype.findByName = function (name) { if (this.findEphemera) { if (name && name.indexOf("@@e:") == 0) { return this.findEphemera(name); } } return null; }; return IgrColumnExchanger; }()); export { IgrColumnExchanger };