Git Product home page Git Product logo

Comments (4)

knownasilya avatar knownasilya commented on June 8, 2024

This would probably be my most sought after feature, since we use the carousel for showing data (not images), and it's confusing for users that the buttons are still active and that it moves back to the first slide.

from ember-carousel.

akashdsouza avatar akashdsouza commented on June 8, 2024

Can we have a service which has a property carouselItemCount that is incremented on component init to do this?

from ember-carousel.

selvagsz avatar selvagsz commented on June 8, 2024

@akashdsouza Services are singleton and I think they dont fit well for persisting the state in components especially when there are multiple instances of same component. They can be hacked by scoping though which I prefer least

from ember-carousel.

knownasilya avatar knownasilya commented on June 8, 2024

Item count is easy, since you bring your own data and you can use that data to get the length {{data.length}}. So my current workaround is to just hide the buttons if {{#if (gt data.length 1)}}.

from ember-carousel.

Related Issues (12)

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.