112
Views
3
Comments
Solved
[Star Rating React Widget] Need to add an OnParametersChanged
Question
starrating-react-widget
Reactive icon
Forge asset by Robert Carter

Nice component and seems to work great. The main thing that needs to be changed is to add an OnParametersChanged so that if the underlying rating changes for whatever reason, the component will reflect that.

2018-09-17 17-54-14
Munjal Subodh
Solution

Added the OnParameterChanged to the widgets. I dont have permission to update the actual component

StarRatingReactWidget20200829.oap
2019-11-13 19-43-02
Robert Carter
Staff

Hi Munjal, 

Sorry for the delayed response, work was very busy. Thank you for the suggestion and code, I will take a look. Out of curiosity, did you have a use case where you needed OnParameterChanged?

2018-09-17 17-54-14
Munjal Subodh

No problem. The usecase is that with reactive web, I cannot predict exactly when data will be loaded. So I would not know the value for the start when initializing it. Therefore, I need to be able to change the the number of active stars when my data has loaded. 


I hope I did a good job explaining. I see that there is a "newer" version. Does that mean that the OnParameterChanged is implemented? I am scared to update it from the Forge in case my changes will be overwritten.


PS. I did not do the most effecient update baesd on the paramter update. I am sure there is a more performant way of doing it as opposed to what I am doing which is just a full refresh. 


Thanks for the great component.

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.