Giter Site home page Giter Site logo

Comments (9)

lemkepf avatar lemkepf commented on July 30, 2024

+1

from ngprogress.

dasois avatar dasois commented on July 30, 2024

@gabegorelick: how would you suggest addressing these multiple progress-bars in the css?

from ngprogress.

dfsq avatar dfsq commented on July 30, 2024

@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.

dasois avatar dasois commented on July 30, 2024

@dfsq:

  1. Im not sure how this issue would benefit from positioning in non-static containers?
  2. Why do you like to use position: absolute?

from ngprogress.

gngeorgiev avatar gngeorgiev commented on July 30, 2024

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.

brandonkboswell avatar brandonkboswell commented on July 30, 2024

+1

from ngprogress.

victorb avatar victorb commented on July 30, 2024

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.

victorb avatar victorb commented on July 30, 2024

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.

victorb avatar victorb commented on July 30, 2024

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)

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.