-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2602 from IDEMSInternational/feature-kw-category-…
…button-grid Kuwait Theme: Radio Button Grid Styling
- Loading branch information
Showing
4 changed files
with
93 additions
and
12 deletions.
There are no files selected for viewing
33 changes: 22 additions & 11 deletions
33
.../shared/components/template/components/radio-button-grid/radio-button-grid.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,24 @@ | ||
<div class="radio-grid" [ngStyle]="gridStyle"> | ||
<div | ||
*ngFor="let item of radioItems" | ||
class="item" | ||
(click)="handleItemClick(item)" | ||
[attr.data-selected]="item.name === _row.value" | ||
> | ||
<div class="item-image-container" *ngIf="item.image"> | ||
<img class="item-image" [src]="item.image | plhAsset" /> | ||
<div class="radio-grid" [ngStyle]="gridStyle" [attr.data-variant]="parameter_list.variant"> | ||
@for (item of radioItems; track $index) { | ||
<div | ||
class="item" | ||
(click)="handleItemClick(item)" | ||
[attr.data-selected]="item.name === _row.value" | ||
> | ||
@if (item.image) { | ||
<div class="item-image-container"> | ||
<img | ||
class="item-image" | ||
[src]=" | ||
(item.name === _row.value && item.image_checked ? item.image_checked : item.image) | ||
| plhAsset | ||
" | ||
/> | ||
</div> | ||
} | ||
@if (item.text) { | ||
<div class="item-text">{{ item.text }}</div> | ||
} | ||
</div> | ||
<div class="item-text">{{ item.text }}</div> | ||
</div> | ||
} | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters