Files
alfresco-ng2-components/ng2-components/ng2-alfresco-social/src/components/rating.component.html
Eugenio Romano e25b05d991 rating component #521 (#1810)
* rating component #521

* use adf prefix
2017-04-27 14:05:11 +01:00

11 lines
656 B
HTML

<div id="adf-rating-container" class="adf-rating-container">
<ul class="mdl-list adf-stars-container">
<li class="mdl-list__item adf-rating-star" *ngFor="let currentRate of stars; let idx = index">
<span id="adf-rate-{{idx}}" class="mdl-list__item-primary-content">
<i id="adf-grey-star-{{idx}}" *ngIf="currentRate.fill" class="material-icons adf-colored-star" (click)="updateVote(idx + 1)" >star_rate</i>
<i id="adf-colored-star-{{idx}}" *ngIf="!currentRate.fill" class="material-icons adf-grey-star" (click)="updateVote(idx + 1)" >star_border</i>
</span>
</li>
</ul>
</div>