SSENSE/vue-carousel

Feature Request: Customizable Carousel Width and Navigation Links

Open

#294 opened on Oct 8, 2018

View on GitHub
 (2 comments) (0 reactions) (0 assignees)JavaScript (1,705 stars) (513 forks)batch import
featuregood first issuehelp wanted

Description

Is your feature request related to a problem? Customizing the size of slideWidth of the carousel and having the navigation buttons route to another link rather than just the previous slide and the next slide.

Describe the solution you'd like I'm using a modal window that is slightly larger than the computed size of the slides in the carousel, which is calculating an incorrect offset for each of the slides as I navigate through my carousel. I want to be able to customize the size so that the width of the slides are exactly the same size as my modal window.

I also want to be able to have the previous and next navigation buttons route to something else other than the previous and next slides in the carousel. Right now, I want to include the previous and next buttons on the last slide of my carousel and have them close my modal window, but the current version of the library doesn't support that.

If any, describe the alternatives you've considered

  1. Create a data or prop variable called slideWidth that could be set by the user through the carousel tags.
  2. Create some if conditions in the goToPage method to add different functionality for the navigation buttons.

Contributor guide