Skip to content

Commit 1ab6be2

Browse files
committed
Fixed cusotm template styling.
1 parent 14ca228 commit 1ab6be2

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/app/demos/doc-demos/custom-template/custom-template.component.html

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,10 @@
33
[options]="options"
44
[propertyMap]="{ img: 'flag' }">
55
<ng-template let-option="option">
6-
<img [src]="option.img" width="40px" height="40px" [attr.alt]="option.name" />
7-
{{ option.name }}
6+
<style> .test { display: flex;align-items:center; } </style>
7+
<div class="custom-option">
8+
<img [src]="option.img" width="40px" height="40px" [attr.alt]="option.name" />
9+
{{ option.name }}
10+
</div>
811
</ng-template>
912
</ngx-multiselect>

0 commit comments

Comments
 (0)