How to use the vaadin loading indicator?

Hi everyone,

I’m trying to set up a PROGRESS-indicator, whenever an action on my vaadin webpage takes longer than 2sec on the server side to perform.
What I found is that there is a similiar vaadin gui component already on the webpage.
It’s the loading indicator.

So my question is: How can I access the loading indicator, change it to a progress-indicator and control the amount of seconds it takes to start itself?

Thank you very much!

Unfortunately, you cannot. All That’s possible is ti restyle the loading-indicator using CSS.

After how many seconds does the indicator appear?

Didn’t recheck
this information from Henri Sara
, but he says the first stage kicks in after 300ms, the second (yellow) after 1500ms and the red one after 3000ms.