We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4ab2743 commit af6b0aaCopy full SHA for af6b0aa
eform-client/src/app/modules/cases/components/case-edit-switch/case-edit-switch.component.html
@@ -1,7 +1,9 @@
1
<ng-container *ngIf="dataItemList">
2
<ng-container *ngFor="let dataItem of dataItemList; let i = index">
3
<div class="card z-depth-2 mb-3" style="width: 100%" *ngIf="dataItem.fieldType != 'SaveButton'">
4
- <div class="card-header" *ngIf="dataItem.fieldType != 'FieldContainer' && dataItem.fieldType != 'SaveButton'">
+ <div class="card-header"
5
+ [ngStyle]="{'background-color': dataItem.color ? '#' + dataItem.color : ''}"
6
+ *ngIf="dataItem.fieldType != 'FieldContainer' && dataItem.fieldType != 'SaveButton'">
7
{{dataItem.label}}
8
</div>
9
<div class="card-body">
0 commit comments