In my perspective project, I created som transform scripts in charts to get a lot of data from my DB. These actions can last between 5 to 10 seconds.
Is it possible to show a loading screen or hourglass pointer to inform user that action is in progress ?
in style you can add: cursor: wait or cursor: progress
((on windows10:) wait is the blue circle wait gif thingy and progress is the old pointer+hourglass)
and back to normal is cursor: auto
it only works when hovering that element tho or if you do it in the root it will work unless you hover a button/inputfield.
It does not prevent clicks. If you want that aswell you can add in pointer-events: none But be sure to turn it back to auto, else you cant click anything anymore! pointer-events: auto
Showing a popup seems a bit exessive. Unless it really takes several minutes to execute your script…
But you could open a popup and close it again in a script.
if you set the popup to modal the user will only be able to interact with the popup (just dont put anything to close it on the popup so that the script is the only thing that can close it)