[AAE-15741] ADF CardView component - headers for multivalued strings, integers and floats (#8789)

[AAE-15741] add configuration for display label for multivalued chip property



Co-authored-by: “chndn004” <“chandanchatterjee04@gmail.com”>
This commit is contained in:
Suman Chattopadhyay
2023-07-28 12:28:56 +05:30
committed by GitHub
parent fee60cd4ab
commit 48898df0fa
12 changed files with 145 additions and 11 deletions

View File

@@ -6,7 +6,8 @@
[properties]="properties"
[editable]="isEditable"
[displayClearAction]="showClearDateAction"
[displayNoneOption]="showNoneOption">
[displayNoneOption]="showNoneOption"
[displayLabelForChips]="showLabelForChips">
</adf-card-view>
</mat-card>
@@ -38,6 +39,13 @@
(change)="toggleNoneOption()"
[checked]="showNoneOption">
Show none option
</mat-slide-toggle><br>
<mat-slide-toggle
id="app-toggle-label-multivalued-chip"
[color]="'primary'"
(change)="toggleLabelForChips()"
[checked]="showLabelForChips">
Show label for chips property
</mat-slide-toggle>
</p>

View File

@@ -47,6 +47,7 @@ export class CardViewComponent implements OnInit, OnDestroy {
logs: string[];
showClearDateAction = false;
showNoneOption = false;
showLabelForChips = false;
private onDestroy$ = new Subject<boolean>();
@@ -268,6 +269,10 @@ export class CardViewComponent implements OnInit, OnDestroy {
this.showNoneOption = !this.showNoneOption;
}
toggleLabelForChips() {
this.showLabelForChips = !this.showLabelForChips;
}
reset() {
this.isEditable = true;
this.createCard();