[Star Rating React Widget] Need to add an OnParametersChanged

Forge Component
(2)
Published on 30 Mar by Robert Carter
2 votes
Published on 30 Mar 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.

Solution

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

Solution

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?

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.