Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

By default NGClient will set the wait mouse cursor on the body and all its elements - when a request to the server takes a while. Starting with Servoy 2019.03 it will also show a default loading animation (bottom of page).

...

The loading indicator is implemented through $sabloLoadingIndicator angular service - which also allows 3rd party ng service packages (that want to set their own 'loading' UI) to override default behavior. The $sabloLoadingIndicator service can also be called (as/if needed) by 3rd party ng service or component packages that which know that a (special) operation can take a while to execute.

...

A call to showLoading() should always be followed at some point with a call to hideLoading() - else the internal state will be wrong.

If you want to control override what should be done when show/hide is called - so you want to show your own kind of loading (maybe a div) instead of the default behavior - then you can add your own angular/ng service with the name "loadingIndicator". This service should have those 2 functions; don't use this service directly to set or hide the indicator from other places that need it, always use the $sabloLoadingIndicator which will delegate to your "loadingIndicator".

...