Loading screen/gif during script execution

Hi,

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 ?

Thanks

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

1 Like

Thanks

It shows me a parse error for code below :
image

you will need to use brackets around cursor and pointer-events
like so
self.props.style['cursor']='wait'

1 Like

Technically, just pointer-events, since that’s not a valid Python identifier directly.

1 Like