@anglr/grid
Version:
Angular module displaying grid
53 lines • 2.25 kB
JavaScript
import { ChangeDetectorRef, ElementRef, Directive } from '@angular/core';
import { extend } from '@jscrpt/common/extend';
import * as i0 from "@angular/core";
/**
* Abstract component for body content renderer
* @deprecated use new MatrixGrid with MatrixContentRenderer instead
*/
export class BodyContentRendererAbstractComponent {
//######################### public properties - implementation of BodyContentRenderer #########################
/**
* @inheritdoc
*/
get options() {
return this.ɵoptions;
}
set options(options) {
this.ɵoptions = extend(true, this.ɵoptions, options);
}
//######################### constructor #########################
constructor(pluginElement, _changeDetector, gridPlugins, defaultOptions, options) {
this.pluginElement = pluginElement;
this._changeDetector = _changeDetector;
this.gridPlugins = gridPlugins;
/**
* @inheritdoc
*/
this.data = [];
this.ɵoptions = extend(true, {}, defaultOptions, options);
}
//######################### public methods - implementation of CssDivsBodyContentRenderer<TData, BasicTableColumn> #########################
/**
* @inheritdoc
*/
initialize(_force) {
}
/**
* @inheritdoc
*/
initOptions() {
}
/**
* @inheritdoc
*/
invalidateVisuals() {
this._changeDetector.detectChanges();
}
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.0", ngImport: i0, type: BodyContentRendererAbstractComponent, deps: "invalid", target: i0.ɵɵFactoryTarget.Directive }); }
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.1.0", type: BodyContentRendererAbstractComponent, isStandalone: true, ngImport: i0 }); }
}
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.0", ngImport: i0, type: BodyContentRendererAbstractComponent, decorators: [{
type: Directive
}], ctorParameters: () => [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }, { type: undefined }, { type: undefined }, { type: undefined }] });
//# sourceMappingURL=bodyContentRendererAbstract.component.js.map