Git Product home page Git Product logo

Comments (5)

chriswhong avatar chriswhong commented on May 29, 2024

I think my workaround will probably just be to wrap the range slider in a new component, so I can hijack the action.

from ember-cli-nouislider.

kennethkalmer avatar kennethkalmer commented on May 29, 2024

Hmm, interesting idea. I have to ask though, would multiple actions not work better as it is very explicit what is going on? Or is this a case of many sliders added dynamically to the page (ie operating on items in a collection)?

from ember-cli-nouislider.

chriswhong avatar chriswhong commented on May 29, 2024

The issue is we may have 50 of these things on the page, and the action would just be doing the same thing for all 50 (updating a range array for a specific item in a collection).

I was able to wrap range-slider in a simple component, and pass in an id to the component. It works like a charm, but would be nice to have in the range slider.

from ember-cli-nouislider.

aariabov avatar aariabov commented on May 29, 2024

You can pass argument id of action:
{{range-slider ... on-change=(action 'rangeSliderChanged' id)}}
And take it in action:
rangeSliderChanged(id, val) { ... }

from ember-cli-nouislider.

scottkidder avatar scottkidder commented on May 29, 2024

Seems like this can be closed.

from ember-cli-nouislider.

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.