Skip to content

Commit

Permalink
[ADF-3499] Make Card View Text Item reactive to user input
Browse files Browse the repository at this point in the history
  • Loading branch information
davidcanonieto committed Aug 5, 2020
1 parent 1dec2ba commit 17f672b
Show file tree
Hide file tree
Showing 4 changed files with 446 additions and 355 deletions.
3 changes: 2 additions & 1 deletion lib/core/card-view/card-view.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

import { CommonModule } from '@angular/common';
import { NgModule } from '@angular/core';
import { FormsModule } from '@angular/forms';
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
import { MatButtonModule } from '@angular/material/button';
import { MatCardModule } from '@angular/material/card';
import { MatCheckboxModule } from '@angular/material/checkbox';
Expand Down Expand Up @@ -50,6 +50,7 @@ import { CardViewArrayItemComponent } from './components/card-view-arrayitem/car
imports: [
CommonModule,
FormsModule,
ReactiveFormsModule,
FlexLayoutModule,
TranslateModule,
MatDatepickerModule,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,8 @@
*ngIf="!property.multiline"
class="adf-property-value"
[placeholder]="property.default"
[(ngModel)]="editedValue"
(blur)="update()"
(keydown.enter)="update()"
[value]="editedValue"
[formControl]="textInput"
[disabled]="!isEditable"
(dblclick)="copyToClipboard(property.displayValue)"
matTooltipShowDelay="1000"
Expand All @@ -29,9 +28,7 @@
matAutosizeMaxRows="5"
class="adf-property-value"
[placeholder]="property.default"
[(ngModel)]="editedValue"
(blur)="update()"
(keydown.enter)="update()"
[formControl]="textInput"
[disabled]="!isEditable"
[attr.data-automation-id]="'card-textitem-value-' + property.key"></textarea>
<button mat-button
Expand Down

0 comments on commit 17f672b

Please sign in to comment.