igniteui-react-grids
Version:
Ignite UI React grid components.
55 lines (54 loc) • 1.41 kB
JavaScript
import { ColumnExchanger as ColumnExchanger_internal } from "./ColumnExchanger";
/**
* Indicates a column that should be exchanged with another.
*/
export class IgrColumnExchanger {
createImplementation() {
return new ColumnExchanger_internal(0);
}
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 desired location of the new column
*/
get targetIndex() {
return this.i.b;
}
set targetIndex(v) {
this.i.b = +v;
}
findByName(name) {
if (this.findEphemera) {
if (name && name.indexOf("@@e:") == 0) {
return this.findEphemera(name);
}
}
return null;
}
}