Can i make a third party rest api call in widgetIsLoaded?
If we can , how can we pass that api data from widgetIsLoaded to afterRender ?
Here is the plunker - https://next.plnkr.co/edit/4JkGb3sI7v1BfR0V
Can i make a third party rest api call in widgetIsLoaded?
If we can , how can we pass that api data from widgetIsLoaded to afterRender ?
Here is the plunker - https://next.plnkr.co/edit/4JkGb3sI7v1BfR0V
Hello,
The widgetIsLoaded
is a synchronous function and you can't make an async call from it. The widgetIsLoaded
is called once to detect whether a 3rd party widget available on the page or not. You can make an async call in any other part of your code and pass settings to a custom widget instance.
Thanks, Serge
SurveyJS Team