Merge pull request #1578 from josehernandezfintecheandomx/fix/create_client_with_datatables

Use of text area input in client datatable
This commit is contained in:
Adam Saghy
2022-11-23 20:55:25 +01:00
committed by GitHub
3 changed files with 8 additions and 1 deletions
@@ -19,6 +19,9 @@
<input matInput *ngIf="isString(datatableInput.columnDisplayType)"
formControlName="{{datatableInput.controlName}}">
<textarea matInput *ngIf="isText(datatableInput.columnDisplayType)"
formControlName="{{datatableInput.controlName}}"></textarea>
<span *ngIf="isDate(datatableInput.columnDisplayType)" (click)="datePicker.open()">
<input matInput [matDatepicker]="datePicker" formControlName="{{datatableInput.controlName}}" class="date-picker">
<mat-datepicker-toggle matSuffix [for]="datePicker"></mat-datepicker-toggle>
@@ -67,6 +67,10 @@ export class ClientDatatableStepComponent implements OnInit {
return this.isColumnType(columnType, 'STRING');
}
isText(columnType: string) {
return this.isColumnType(columnType, 'TEXT');
}
isColumnType(columnType: string, expectedType: string) {
return (columnType === expectedType);
}