triniwiz / nativescript-star-ratings

NativeScript star ratings UI component plugin.
Apache License 2.0
22 stars 8 forks source link

Fixed Stars #3

Closed gmsgowtham closed 7 years ago

gmsgowtham commented 7 years ago

Is there any option to fix the value of star

sean-perkins commented 7 years ago

Can you please explain your issue in a little more depth? You can set the value of the stars.

gmsgowtham commented 7 years ago

In Angular2, the value of the stars is still editable by dragging the stars even after fixing the value of the stars. Will you please send a code snippet for fixing the value of the stars?

sean-perkins commented 7 years ago

The plugins API does not mention setting a value to be fixed, where a user could not change it anymore. Why not just use star icons to accomplish fixed values? Just swap out the plugins UI with that UI based on some user interaction.

Otherwise, you can try setting the min and max value to the current value when you set a rating. That may accomplish what you need.

If all else fails, this is an open source project. Feel free to fork, add your functionality and PR it back.

gmsgowtham commented 7 years ago

Thank you for your explanation.