Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion projects/flexmonster/angular/src/flat-table.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ import {
export class FMFlatTable implements AfterViewInit, OnDestroy, IFMFlatTable {
@Input() state: StateInputParams | undefined;
@Input() options: IFMFlatTableOptionsInputParams | undefined;
@Input() name: string | undefined;

protected root: HTMLElement;
private _flatTable!: IFMFlatTable;
Expand All @@ -31,7 +32,7 @@ export class FMFlatTable implements AfterViewInit, OnDestroy, IFMFlatTable {

ngAfterViewInit() {
const container = this.root.getElementsByClassName('fm-ng-wrapper')[0] as HTMLElement;
this._flatTable = FlatTable(container, { state: this.state, options: this.options });
this._flatTable = FlatTable(container, { state: this.state, options: this.options, name: this.name });
}

ngOnDestroy() {
Expand Down
3 changes: 2 additions & 1 deletion projects/flexmonster/angular/src/pivot-table.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ import {
export class FMPivotTable implements AfterViewInit, OnDestroy, IFMPivotTable {
@Input() state: StateInputParams | undefined;
@Input() options: IFMPivotTableOptionsInputParams | undefined;
@Input() name: string | undefined;

protected root: HTMLElement;
private _pivotTable!: IFMPivotTable;
Expand All @@ -33,7 +34,7 @@ export class FMPivotTable implements AfterViewInit, OnDestroy, IFMPivotTable {

ngAfterViewInit() {
const container = this.root.getElementsByClassName('fm-ng-wrapper')[0] as HTMLElement;
this._pivotTable = PivotTable(container, { state: this.state, options: this.options });
this._pivotTable = PivotTable(container, { state: this.state, options: this.options, name: this.name });
}

ngOnDestroy() {
Expand Down
2 changes: 2 additions & 0 deletions projects/flexmonster/angular/ssr/flat-table.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import { FMSsrBase } from './flexmonster-ssr-base.component';
export class FMFlatTable extends FMSsrBase {
@Input() state: StateInputParams | undefined;
@Input() options: IFMFlatTableOptionsInputParams | undefined;
@Input() name: string | undefined;

public flatTable!: IFMFlatTable;

Expand All @@ -20,6 +21,7 @@ export class FMFlatTable extends FMSsrBase {
const ref = this.vcr.createComponent(FMFlatTable);
ref.setInput('state', this.state);
ref.setInput('options', this.options);
ref.setInput('name', this.name);
ref.changeDetectorRef.detectChanges();
this.flatTable = ref.instance;
});
Expand Down
2 changes: 2 additions & 0 deletions projects/flexmonster/angular/ssr/pivot-table.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import { FMSsrBase } from './flexmonster-ssr-base.component';
export class FMPivotTable extends FMSsrBase {
@Input() state: StateInputParams | undefined;
@Input() options: IFMPivotTableOptionsInputParams | undefined;
@Input() name: string | undefined;

public pivotTable!: IFMPivotTable;

Expand All @@ -20,6 +21,7 @@ export class FMPivotTable extends FMSsrBase {
const ref = this.vcr.createComponent(FMPivotTable);
ref.setInput('state', this.state);
ref.setInput('options', this.options);
ref.setInput('name', this.name);
ref.changeDetectorRef.detectChanges();
this.pivotTable = ref.instance;
});
Expand Down