diff --git a/src/components/config/PrimeVue.js b/src/components/config/PrimeVue.js index d4b131923..3929b38fc 100644 --- a/src/components/config/PrimeVue.js +++ b/src/components/config/PrimeVue.js @@ -66,7 +66,10 @@ const defaultOptions = { aria: { trueLabel: 'True', falseLabel: 'False', - nullLabel: 'Not Selected' + nullLabel: 'Not Selected', + star: 'star', + stars: 'stars', + noneStars: 'No Rating' } }, filterMatchModeOptions: { diff --git a/src/components/rating/Rating.d.ts b/src/components/rating/Rating.d.ts index 0e494844f..46fccd4eb 100755 --- a/src/components/rating/Rating.d.ts +++ b/src/components/rating/Rating.d.ts @@ -16,6 +16,10 @@ export interface RatingProps { * Value of the rating. */ modelValue?: number | undefined; + /** + * Name of the element. + */ + name?: string | undefined; /** * When present, it specifies that the element should be disabled. */ diff --git a/src/components/rating/Rating.vue b/src/components/rating/Rating.vue index 37c754164..a97263bcb 100755 --- a/src/components/rating/Rating.vue +++ b/src/components/rating/Rating.vue @@ -1,19 +1,33 @@ - - + + {{labelText(0)}} + + + + + + + {{labelText(i)}} + + + +