pull/507/head
Cory LaViska 2021-08-18 17:29:59 -04:00
rodzic 96008539d5
commit e571c884c1
1 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

@ -69,9 +69,9 @@ Use the `disable` attribute to disable the rating.
<script>
const rating = document.querySelector('.rating-emojis');
rating.symbol = (value) => {
rating.getSymbol = (value) => {
const icons = ['emoji-angry', 'emoji-frown', 'emoji-expressionless', 'emoji-smile', 'emoji-laughing'];
return icons[value - 1];
return `<sl-icon name="${icons[value - 1]}"></sl-icon>`;
};
</script>
```