Skip to content

apexutils/Change-Spinner

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

APEX Utils - Change Spinner

Demo: https://www.apexutils.com

About

Use this simple dynamic action Plug-in to replace the default APEX spinner shown while a report refreshes, on page submission, or wherever apex.util.showSpinner is called.

You should run this DA on page load. Every spinner shown from then on will use the new markup.

Attributes

Attribute# Name Type
1 Spinner HTML HTML
2 Spinner CSS Textarea

Chances are you won't design the spinner yourself, so here are some great resources for free, awesome looking spinners. They are already split into HTML and CSS so all you have to do is copy/paste.

Under the hood

Unfortunately the default markup for the spinner is hardcoded in the apex.util.showSpinner function as opposed to it being passed down by the caller. I found the best way to change it is to override the function completely, this time using the custom HTML. The CSS is simply appended to the document.

Changelog

v1.2 fixed spinnerClass + help text

v1.1 fixed issue on modal page

v1.0 initial release

License

MIT

About

A Dynamic Action Plug-in that replaces the default APEX spinner with your custom HTML/ CSS

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published