add game icon to game bar item
This commit is contained in:
parent
1e84726bc5
commit
3b2655cc83
@ -1,3 +1,22 @@
|
||||
<div class="game" [ngClass]="{'active': active}">
|
||||
<!-- <div class="game" [ngClass]="{'active': active}">
|
||||
<div class="game-title">{{game.title}}</div>
|
||||
</div>
|
||||
</div> -->
|
||||
<ng-template #icon>
|
||||
<tui-avatar
|
||||
size="xs"
|
||||
[rounded]="true"
|
||||
[avatarUrl]="'./assets/games-icons/' + game.image"
|
||||
></tui-avatar>
|
||||
</ng-template>
|
||||
|
||||
<button
|
||||
tuiButton
|
||||
type="button"
|
||||
appearance="primary"
|
||||
[icon]="icon"
|
||||
class="tui-space_right-3 tui-space_bottom-3"
|
||||
class="game"
|
||||
[ngClass]="{'active': active}"
|
||||
>
|
||||
{{game.title}}
|
||||
<ng-content></ng-content>
|
Loading…
Reference in New Issue
Block a user