rikmms / progress-bar-4-axios

Slim progress bar (NProgress) for Web applications that use Axios library for HTTP requests
MIT License
246 stars 32 forks source link

How to show progress bar in specific element ? #16

Open ujagarsingh opened 4 years ago

ujagarsingh commented 4 years ago

I want show progress bar in my specific place not top of pages. because there are my header show with position fixed property. so the "progress bar" not showing properly.

JRawly commented 2 years ago

Use the parent configuration property.

loadProgressBar(
    {
        parent: '#elementid'
    },
    axios
)

elementid can be anything valid in a document.querySelector