igniteui-webcomponents-grids
Version:
Ignite UI Web Components grid components.
87 lines (86 loc) • 2.44 kB
JavaScript
import { GroupData as GroupData_internal } from "./GroupData";
/**
* Object used to store group information for group headers.
*/
var IgcGroupData = /** @class */ /*@__PURE__*/ (function () {
function IgcGroupData() {
this._implementation = this.createImplementation();
this._implementation.externalObject = this;
this.onImplementationCreated();
if (this._initializeAdapters) {
this._initializeAdapters();
}
}
IgcGroupData.prototype.createImplementation = function () {
return new GroupData_internal();
};
Object.defineProperty(IgcGroupData.prototype, "i", {
/**
* @hidden
*/
get: function () {
return this._implementation;
},
enumerable: false,
configurable: true
});
IgcGroupData.prototype.onImplementationCreated = function () {
};
IgcGroupData.prototype._provideImplementation = function (i) {
this._implementation = i;
this._implementation.externalObject = this;
this.onImplementationCreated();
if (this._initializeAdapters) {
this._initializeAdapters();
}
};
Object.defineProperty(IgcGroupData.prototype, "groupName", {
/**
* The grouping key.
*/
get: function () {
return this.i.c;
},
set: function (v) {
this.i.c = v;
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgcGroupData.prototype, "groupValue", {
/**
* The group value.
*/
get: function () {
return this.i.a;
},
set: function (v) {
this.i.a = v;
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgcGroupData.prototype, "formattedText", {
/**
* The value as formatted text.
*/
get: function () {
return this.i.b;
},
set: function (v) {
this.i.b = v;
},
enumerable: false,
configurable: true
});
IgcGroupData.prototype.findByName = function (name) {
if (this.findEphemera) {
if (name && name.indexOf("@@e:") == 0) {
return this.findEphemera(name);
}
}
return null;
};
return IgcGroupData;
}());
export { IgcGroupData };