Giter Site home page Giter Site logo

Comments (10)

danielcrisp avatar danielcrisp commented on July 18, 2024

Can you see the elements in dev tools?

from angular-rangeslider.

jkelleher avatar jkelleher commented on July 18, 2024

screen shot 2015-05-06 at 18 52 36
Daniel,
not seeing the labels in my devtools, only the slider.

from angular-rangeslider.

danielcrisp avatar danielcrisp commented on July 18, 2024

Wouldn't they be inside the range-slider div... can you expand it?

from angular-rangeslider.

jkelleher avatar jkelleher commented on July 18, 2024

Sorry about that - looks like the ngrs divs are actually there but hidden by the 'ng-hide' attribute. So the question moves to why these are hidden by default?
screen shot 2015-05-07 at 10 28 21

from angular-rangeslider.

danielcrisp avatar danielcrisp commented on July 18, 2024

Well they shouldn't be!

You can see the default setting here and it is true so they should be visible: https://github.com/danielcrisp/angular-rangeslider/blob/master/angular.rangeSlider.js#L60

Very strange... I don't suppose you could replicate it in a plunkr/fiddle could you please?

from angular-rangeslider.

jkelleher avatar jkelleher commented on July 18, 2024

Daniel, did that up in Plnkr and I see the labels. Trying to think what might be the problem at my end.
I don't think the CSS at my end is the fault as it wouldn't be introducing the ng-hide - but where is that coming from, dunno.
In my app, here's the controller:

angular.module('retro')
    .controller('EnvelopeCtrl', function($scope) {
        $scope.minEnv = 10;
        $scope.maxEnv = 15;
    });

And the html:

<div class="container">
    <div class="row">
        <div class='col-md-12'>
            <ng-include src="'app/components/navbar/navbar.html'"></ng-include>
        </div>
    </div>
    <div class="row">
        <div class="col-xs-8">
            <div class='col-md-10'>
                <label class="control-label">Desired Vacant Int Temp</label>
                <div range-slider min="10" max="20" model-min="minEnv" model-max="maxEnv" attach-handle-values="true"></div>
            </div>
        </div>
    </div>
</div>

from angular-rangeslider.

danielcrisp avatar danielcrisp commented on July 18, 2024

Sounds very strange

I added jQuery and the show-values attribute and its working fine for me...

http://plnkr.co/edit/wfLEOhsvOrPfexrFypAd?p=preview

Have you tried setting the show-values attribute to true?

Also you could inspect the directive scope in Chrome using your console or Batarang to see what the value of showValues is at runtime

from angular-rangeslider.

jkelleher avatar jkelleher commented on July 18, 2024

show-values="true" did the trick. Thanks for chasing it down. Strange how I didn't need it in the plnkr but did in my own app. Still, happy monkey now.

from angular-rangeslider.

danielcrisp avatar danielcrisp commented on July 18, 2024

Ok glad it worked, I think it might be a hint that something isn't quite right somewhere though

from angular-rangeslider.

Aznbai avatar Aznbai commented on July 18, 2024

hello!
same issue as discribed by @jkelleher.
adding show-values="true" to the <div range-slider > did the job.

it actualy worked when i downloaded your ZIP and played with it.
the issue started as i installed angular-rangeslider into my project with bower.

from angular-rangeslider.

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.