diff --git a/api-generator/components/rating.js b/api-generator/components/rating.js
index 794bc7e8f..a65cfe909 100644
--- a/api-generator/components/rating.js
+++ b/api-generator/components/rating.js
@@ -28,6 +28,24 @@ const RatingProps = [
type: 'boolean',
default: 'true',
description: 'When specified a cancel icon is displayed to allow clearing the value.'
+ },
+ {
+ name: 'onIcon',
+ type: 'string',
+ default: 'null',
+ description: 'Icon for the on state.'
+ },
+ {
+ name: 'offIcon',
+ type: 'string',
+ default: 'null',
+ description: 'Icon for the off state.'
+ },
+ {
+ name: 'cancelIcon',
+ type: 'string',
+ default: 'null',
+ description: 'Icon for the cancelable state.'
}
];
diff --git a/components/lib/rating/Rating.d.ts b/components/lib/rating/Rating.d.ts
index 2c07f073b..45bb5aa32 100755
--- a/components/lib/rating/Rating.d.ts
+++ b/components/lib/rating/Rating.d.ts
@@ -59,17 +59,14 @@ export interface RatingProps {
cancel?: boolean | undefined;
/**
* Icon for the on state.
- * @defaultValue pi pi-star
*/
onIcon?: string | undefined;
/**
* Icon for the off state.
- * @defaultValue pi pi-star-fill
*/
offIcon?: string | undefined;
/**
* Icon for the cancelable state.
- * @defaultValue pi pi-ban
*/
cancelIcon?: string | undefined;
}
diff --git a/components/lib/rating/Rating.vue b/components/lib/rating/Rating.vue
index 5aca12b29..d9ba5034a 100755
--- a/components/lib/rating/Rating.vue
+++ b/components/lib/rating/Rating.vue
@@ -5,7 +5,7 @@
-
+
@@ -25,10 +25,10 @@
/>
-
+
-
+
@@ -36,6 +36,9 @@