nprogress multi instance
See original GitHub issueHi, Is it possible to instantiate nprogress multiple time, I wanted to use it in different DOM elements not globally?
Here’s what I’ve done:
$.ajax({
....
beforeSend: function(data) {
NgProgress.configure({ parent: '#'+element});
NgProgress.start();
},
success: function(response) {
NgProgress.done();
}
If I call Ajax in different DOM to get some data, the nprogress will be used one time in one place only for the first ajax call.
Issue Analytics
- State:
- Created 8 years ago
- Reactions:19
- Comments:11
Top Results From Across the Web
multi-nprogress - npm
Simple slim progress bars. Latest version: 0.3.5, last published: 2 years ago. Start using multi-nprogress in your project by running `npm i ...
Read more >NProgress: slim progress bars in JavaScript - Rico Sta. Cruz
A nanoscopic progress bar. Featuring realistic trickle animations to convince your users that something is happening! NProgress.start() — shows the progress bar.
Read more >rstacruz/nprogress - Gitter
I am trying to get the bar to work in a div with an id='progress1' so I used nprogress.configure({parent: '#progress1'}) in my javascript....
Read more >Is it possible to target the nProgress loading bar?
Keep in mind however that NProgress doesn't support having multiple progress bars per page (which isn't a very good use case anyway). Also...
Read more >@tanem/react-nprogress examples - CodeSandbox
Learn how to use @tanem/react-nprogress by viewing and forking example apps that make use of ... multiple-instancesReactNProgress Multiple Instances Example.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
This would be great and I’m also looking for a feedback of this being possibile.
Something like this:
if you are looking just for this feature, i have it in a forked package https://www.npmjs.com/package/multi-nprogress