Skip to content

Commit

Permalink
fix example
Browse files Browse the repository at this point in the history
  • Loading branch information
claviska committed Aug 18, 2021
1 parent 9600853 commit e571c88
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/components/rating.md
Original file line number Diff line number Diff line change
Expand Up @@ -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>
```
Expand Down

0 comments on commit e571c88

Please sign in to comment.