igniteui-react-grids
Version:
Ignite UI React grid components.
73 lines (72 loc) • 1.66 kB
JavaScript
import { GroupData as GroupData_internal } from "./GroupData";
/**
* Object used to store group information for group headers.
*/
export class IgrGroupData {
createImplementation() {
return new GroupData_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 grouping key.
*/
get groupName() {
return this.i.c;
}
set groupName(v) {
this.i.c = v;
}
/**
* The group value.
*/
get groupValue() {
return this.i.a;
}
set groupValue(v) {
this.i.a = v;
}
/**
* The value as formatted text.
*/
get formattedText() {
return this.i.b;
}
set formattedText(v) {
this.i.b = v;
}
findByName(name) {
if (this.findEphemera) {
if (name && name.indexOf("@@e:") == 0) {
return this.findEphemera(name);
}
}
return null;
}
}