Hi! how do I implement a spinner or loading screen during any object transactions. I also want to a loading state before a AIP logic give its answers.
I can’t find any documentations about it.
like this or just a spinner
I answered a similar question here.
I am not sure if there is a better way to do it, but how I generally do it is by embedding gifs (for example a gif of a loading spinner) and showing it conditionally.
You can use the media preview widget and then set a static media string.
The format in the string is as follows:
data:image/gif;base64,{base64encodingofthegif}
You can get the base64 encoding with the following command in your terminal:
base64 -i {inputfile}
Alternatively you can have conditional strings that just show a text.
Hi @Herson,
Unfortunately, there isn’t native documentation or built-in configuration for custom loading states in Workshop widgets at this time. The loading spinners you see already are automatically managed by Foundry and cannot be directly customized through standard Workshop configuration.
Most Workshop widgets have automatic loading states built-in. When a widget is fetching data (from an Object Set, Function, or Action), it will automatically display a loading indicator. You don’t need to configure anything for this behavior.
For AIP related Widgets, the loading state is automatically displayed by Foundry when the agent is processing a request or AIP logic function is being executed.
Best Regards,
Sanjeeth