diff --git a/Readme.md b/Readme.md index d4150ea..3ccae4f 100644 --- a/Readme.md +++ b/Readme.md @@ -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. @@ -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', diff --git a/src/Stars.svelte b/src/Stars.svelte index 0dfd6b0..f6891e9 100644 --- a/src/Stars.svelte +++ b/src/Stars.svelte @@ -1,11 +1,12 @@