Headless CMS and Content Managment Hub
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

13 lines
617 B

<div class="stars-container">
<div *ngIf="maximumStars === 0 || maximumStars > 15" class="many-stars">
Must not have more more than 15 stars
</div>
<ng-container *ngIf="maximumStars > 0 && maximumStars <= 15">
<span class="stars" (mouseleave)="stopPreview()" [class.disabled]="isDisabled">
<span class="star" *ngFor="let star of starsArray" (mouseenter)="setPreview(star)" (click)="setValue(star)" [class.selected]="star <= stars"></span>
</span>
<button class="btn btn-link" [class.hidden]="!value" (click)="reset()">Clear</button>
</ng-container>
</div>