Coder Social home page Coder Social logo

Comments (7)

vesper8 avatar vesper8 commented on August 21, 2024 6

Not sure why you needed to use a ref so bad, but using selectors works fine:

  data() {
    return {
      slickOptions: {
        infinite: true,
        slidesToShow: 3,
        slidesToScroll: 3,
        arrows: true,
        prevArrow: '#gallery-prev',
        nextArrow: '#gallery-next',
      },
    };
  },

from vue-slick.

staskjs avatar staskjs commented on August 21, 2024

As long as slickOptions is passed directly into slick plugin, it relies on selectors for prevArrow and nextArrow. Did you try to use selectors?

from vue-slick.

andymerskin avatar andymerskin commented on August 21, 2024

@staskjs I did, and it was a no-go. Nothing I threw at it worked for those options for some reason. :/

I ended up hacking away at adding custom arrows with the library's methods. I may just skip the disabled state altogether when it's at either edge.

from vue-slick.

staskjs avatar staskjs commented on August 21, 2024

Could you post a solution here in code?

from vue-slick.

andymerskin avatar andymerskin commented on August 21, 2024

Unfortunately I don't have much time to do thatโ€”I'm under a tight deadline. Sorry!

I think in the future I may just implement my own carousel in Vue.js when it's necessary. Slick's great, but it has some firm limitations that deter from the experience we're going for. I generally am not a fan of libraries that include their own UI that I almost always have to fight with. :/

If I can find a little time in the future I'll see if I can whip something up in a CodePen.

Thanks for being supportive on this issue, I appreciate your help. ๐Ÿ˜„

from vue-slick.

staskjs avatar staskjs commented on August 21, 2024

Ok then. Good luck!

from vue-slick.

anankitpatil avatar anankitpatil commented on August 21, 2024

Did you find a solution for this? Selectors aren't working for me.

from vue-slick.

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.