Giter Site home page Giter Site logo

change-spinner's Introduction

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

change-spinner's People

Contributors

apexutils avatar stefandobre avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

xcite1986

change-spinner's Issues

Question about adding to pages

Not an issue, a question.
We have an application with hundreds of pages.
Would I need to add this manually as a DA on every page?
I have succesfully added this spinner to a page, and hoped that I could do the same on page 0 (Global). It did not have any effect on page 0.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.