Comments (5)
Hi @binskeep , can you elaborate a bit more?. Not sure what you mean by the previous initialRating.
There's only one initialRating, the one you use to load the first time.
from star-rating-svg.
User case: I have a 'read only' starRating that displays the average of everyones starRating. I have another starRating that allows the operator to enter the operator's starRating. When the ajax call returns from the updating the operator's starRating, I need to update the 'read only' starRating. It has already been initialized and displayed. However I need to be able to update the 'read only' with the new average. I ended up unloading and erasing the 'read only' starRating, then rebuilding a new 'read only' starRating. It would be nice to allow updating the initialRating after it's been loaded.
from star-rating-svg.
I get you now, good point. I'm gonna add a new method to update the current rating.
from star-rating-svg.
@binskeep Added a couple of new methods, let me know if that works for you
// set rating example
$('your-selector').starRating('setRating', 2.5)
// get rating example
$('your-selector').starRating('getRating')
from star-rating-svg.
Hi Nashio,
I just downloaded v1.0.1 That did the trick. I don't have to unload/reload the plugin. Thanks!
from star-rating-svg.
Related Issues (20)
- Dynamic initial vlue HOT 3
- Stars appear black on iOS HOT 2
- content loaded through ajax HOT 1
- Now it does not working with Chrome 73.0.3683.103 HOT 1
- Stars not displayed HOT 2
- Custom polygon HOT 1
- Stars don't change size + are displayed vertically HOT 2
- If you vote a high value and then vote a low value, the stars do not change to low value HOT 5
- Found and fixed issue when using setRating option HOT 1
- Decrease rank not visible but rank changed HOT 1
- disableAfterRate cannot enter a lower rating HOT 5
- setRating HOT 1
- Can't change the ratedColor HOT 7
- How can I save the currentRating in rails
- disableAfterRate: false => allows me to edit only to raise stars up not to get it down HOT 4
- Re-update html doom element HOT 1
- SVGs generates zyllion validation errors
- Unexpected behavior in "disableAfterRate: false" HOT 2
- starRating 0/zero, not working
- Unset method doesn't work properly
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from star-rating-svg.