Comments (9)
+1
from ngprogress.
@gabegorelick: how would you suggest addressing these multiple progress-bars in the css?
from ngprogress.
@dasois Maybe to make it a requirement that progress bar is used within not-statically positioned parent container. And also use position: absolute
instead of fixed like it's now.
from ngprogress.
- Im not sure how this issue would benefit from positioning in non-static containers?
- Why do you like to use
position: absolute
?
from ngprogress.
Take a look at #50. It is not exactly the same but will allow you to change the position of the progressbar by changing its parent, which can be positioned anywhere.
from ngprogress.
+1
from ngprogress.
This is something I would like to implement. Currently playing around but the directive with the scope counter is coming in the way for. Will share how far I come ASAP.
from ngprogress.
I've done some prototyping of having multiple progressbars in one page.
What I don't like is to have styling stuff in the JS (like this: https://github.com/VictorBjelkholm/ngProgress/blob/7f3ac2889ef8d400161bd9f13f4ce57e66f4ff56/src/provider.js#L164-L166) but struggling with on how to make the CSS to work in just some cases.
Usage would look like this:
$scope.contained_progressbar = ngProgressFactory.getInstance();
$scope.contained_progressbar.setParent(document.getElementById('demo_contained'));
$scope.contained_progressbar.setAbsolute();
Same if you don't have multiple progressbars. Basically, what I changed is that you'll need to construct the service manually via a ngProgressFactory.
If anyone have any other ideas on how to solve it, please share your thoughts 😄
from ngprogress.
This have now been implemented and pushed to version 1.1.0. Enjoy and please open up any issues if there is any.
from ngprogress.
Related Issues (20)
- website HOT 4
- Update link reference HOT 1
- Fix naming in bower.json HOT 1
- Broken API? HOT 1
- Typescript definition file HOT 1
- Versions missing from npm HOT 9
- 'main' referenced in package.json doesn't exist. HOT 4
- setParent() not work HOT 4
- Bower Install Warning HOT 2
- ngProgress injected is not the service but the factory HOT 6
- ngProgressFactory function misses it's dependencies HOT 3
- ngProgressFactory injection failed HOT 1
- Documentation issue HOT 1
- progressbar.complete() shouldn't animate unless it has been started
- first param in $timeout&progress speed HOT 1
- TypeError: 'undefined' is not an object (evaluating 'this.parent.appendChild')
- after deploy code in enviroment - ngprogress version not found HOT 1
- NPM Version Request HOT 4
- IE not reflecting DOM updates and progress bar is delayed until the page is nearly done loading HOT 1
- Request for new maintainer HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ngprogress.