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
4 changes: 2 additions & 2 deletions projects/flexmonster/angular/src/flexmonster.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import {
type IGridCellObject,
type ReportInputParams,
type ReportOutputParams,
FMCompositeViewType,
FMMultiTableViewType,
SortInputParams,
SortOutputParams,
type FlatSortInputParams,
Expand Down Expand Up @@ -89,5 +89,5 @@ export class FMFlexmonster implements AfterViewInit, OnDestroy, IFMFlexmonster {
openFieldList(): void { this._flexmonster.openFieldList(); }
scrollToColumn(columnIndex: number): void { this._flexmonster.scrollToColumn(columnIndex); }
scrollToRow(rowIndex: number): void { this._flexmonster.scrollToRow(rowIndex); }
setViewType(viewType: `${FMCompositeViewType}`): void { this._flexmonster.setViewType(viewType); }
setViewType(viewType: `${FMMultiTableViewType}`): void { this._flexmonster.setViewType(viewType); }
}
2 changes: 1 addition & 1 deletion projects/test-app/src/app/app.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<h1>Angular Flexmonster Showcase</h1>
<h2 id="flexmonster">Flexmonster</h2>

<fm-button size="sm" (click)="openFieldListComposite()">Open Field List</fm-button>
<fm-button size="sm" (click)="openFieldListMultiTable()">Open Field List</fm-button>
<fm-button size="sm" (click)="setViewType('flat')">Flat view</fm-button>
<fm-button size="sm" (click)="setViewType('pivot')">Pivot view</fm-button>

Expand Down
10 changes: 5 additions & 5 deletions projects/test-app/src/app/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ import '@flexmonster/js/flexmonster.css'

//Import Toolbar component
import { ToolbarComponent } from './toolbar/toolbar.component';
import { FMCompositeViewType, IFMFlexmonsterOptionsInputParams, StateInputParams } from '@flexmonster/js';
// import { DataSourceType, F16CompositeViewType } from '@flexmonster/js';
import { FMMultiTableViewType, IFMFlexmonsterOptionsInputParams, StateInputParams } from '@flexmonster/js';
// import { DataSourceType, F16MultiTableViewType } from '@flexmonster/js';

@Component({
selector: 'app-root',
Expand Down Expand Up @@ -45,7 +45,7 @@ export class App implements AfterViewInit {

// Method to open the field list - test API calls
// Example of using Flexmonster reference passed from the same component
public async openFieldListComposite() {
public async openFieldListMultiTable() {
await this.composite().flexmonster.openFieldList();
}

Expand All @@ -67,8 +67,8 @@ export class App implements AfterViewInit {
alert(`Value of the first cell: ${cell.value}`);
}

public setViewType(type: `${FMCompositeViewType}`) {
this.composite().flexmonster.setViewType(type as FMCompositeViewType);
public setViewType(type: `${FMMultiTableViewType}`) {
this.composite().flexmonster.setViewType(type as FMMultiTableViewType);
}

// Test property binding with our toolkit element
Expand Down