Comments (7)
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.
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.
@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.
Could you post a solution here in code?
from vue-slick.
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.
Ok then. Good luck!
from vue-slick.
Did you find a solution for this? Selectors aren't working for me.
from vue-slick.
Related Issues (20)
- jQuery still needed ? HOT 1
- ADA tabbing through dots doesn't work
- @SerlokPK, I wouldn't use VueSlickCarousel. I found a nasty bug that traps the users' vertical touch on mobile devices. I've filed it in the issues section but got no response, so I moved over to this build of slick because the bug doesn't exist and has more community support anyway. HOT 1
- Responsive option not working when you resize your phone to mobile
- Vue 3: Cannot read property '_c' of undefined HOT 2
- appendArrows and appendDots not working
- TypeError: Cannot read properties of undefined (reading '_c') HOT 1
- Slick should be a peerDependency HOT 1
- TypeError: Cannot read properties of undefined (reading '_c') HOT 6
- Edge Warning: [Violation]Added non-passive event listener to a scroll-blocking 'touchstart' event. Consider marking event handler as 'passive' to make the page more responsive. See https://www.chromestatus.com/feature/5745543795965952
- vue-slick swipe in mobile web app
- Does not work in ie11 HOT 1
- Some methods don't work HOT 4
- UMD build error
- nuxt-link destroys slick instance HOT 2
- slidesToShow doesn't work right
- percentage of centerPadding doesn't work on vue-slick
- SLICK BAR NOT DYMAICALLY LOADED WHEN NEW IMAGE HAS ADDED
- Removes core.js HOT 2
- Infinite loop (getDotCount)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vue-slick.