Commit 1fadb0c1 authored by El Mghazli Yacine's avatar El Mghazli Yacine

dynamic table WIP

parent 9d2b7475
...@@ -67,7 +67,7 @@ ...@@ -67,7 +67,7 @@
<mat-form-field [ngSwitch]="col.type"> <mat-form-field [ngSwitch]="col.type">
<mat-slide-toggle *ngSwitchCase="IOptionType.boolean" [formControl]="row.booleanFC" <mat-slide-toggle *ngSwitchCase="IOptionType.boolean" [formControl]="row.booleanFC"
[checked]="row.isEnabledFC.value" [disabled]="!col.modifiable"></mat-slide-toggle> [checked]="row.isEnabledFC.value" [disabled]="!col.modifiable"></mat-slide-toggle>
<input *ngSwitchCase="IOptionType.boolean" matInput [formControl]="row.stringFC" <input *ngSwitchCase="IOptionType.string" matInput [formControl]="row.stringFC"
[disabled]="!col.modifiable" /> [disabled]="!col.modifiable" />
</mat-form-field> </mat-form-field>
</mat-cell> </mat-cell>
......
import { Component } from '@angular/core'; import { Component } from '@angular/core';
import { Observable } from 'rxjs/internal/Observable'; import { Observable } from 'rxjs/internal/Observable';
import { map } from 'rxjs/internal/operators/map'; import { map } from 'rxjs/internal/operators/map';
<<<<<<< HEAD import { CommandsApi, IArgType, IColumn } from 'src/app/api/commands.api';
import { tap, mergeMap, filter } from 'rxjs/operators';
import { CommandsApi, IArgType, ILog } from 'src/app/api/commands.api';
=======
import { CommandsApi, IArgType, IColumn, IRow } from 'src/app/api/commands.api';
>>>>>>> websrv-table
import { CmdCtrl } from 'src/app/controls/cmd.control'; import { CmdCtrl } from 'src/app/controls/cmd.control';
import { RowCtrl } from 'src/app/controls/row.control'; import { RowCtrl } from 'src/app/controls/row.control';
import { VarCtrl } from 'src/app/controls/var.control'; import { VarCtrl } from 'src/app/controls/var.control';
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment