vue-carousel icon indicating copy to clipboard operation
vue-carousel copied to clipboard

I have a row of images. I have to use this carousel only when device width is small. How to achieve this? Is there any parameter to enable or disable this plugin based on screen width?

Open Jayachandran-J-98 opened this issue 2 years ago • 1 comments

Is your feature request related to a problem? Please describe. A clear and concise description of what the problem is. Ex. I have an issue when [...]

Describe the solution you'd like A clear and concise description of what you want to happen. Add any considered drawbacks.

If any, describe the alternatives you've considered A clear and concise description of any alternative solutions or features you've considered.

Teachability, Documentation, Adoption, Migration Strategy If you can, explain how users will be able to use this and possibly write out a version the docs. Maybe a screenshot or design?

Jayachandran-J-98 avatar Jun 13 '22 19:06 Jayachandran-J-98

you can make a computed property like this: isMobileView() { return document.documentElement.clientWidth <= MOBILE_VIEW_MAX_WIDTH; },

then make two blocks in template section - one if isMobile === true (and render carousel), another if not (and render something else).

carmmac avatar Jul 18 '22 17:07 carmmac