Skip to content

Commit

Permalink
Update Readme.md with name
Browse files Browse the repository at this point in the history
  • Loading branch information
Yelinz authored Aug 1, 2023
1 parent 2522081 commit 4aa828d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@ This package will add a svelte component that may or may not receive a configura
| score | `float` | false | 0.0 |
| showScore | `bool` | false | true |
| scoreFormat| `function` | false | precent |
| name | `String` | false | "" |


In addition, we have two other nested attributes that specify distinct settings.

Expand Down Expand Up @@ -80,6 +82,7 @@ const config = {
score: 0.0,
showScore: true,
scoreFormat: function(){ return `(${this.score.toFixed(0)}/${this.countStars})` },
name: "",
starConfig: {
size: 30,
fillColor: '#F9ED4F',
Expand Down

0 comments on commit 4aa828d

Please sign in to comment.