Skip to content
This repository has been archived by the owner on May 10, 2018. It is now read-only.

Added functionality which allows to set how many slides will slide on… #368

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Ricco1
Copy link

@Ricco1 Ricco1 commented Sep 30, 2015

… one click (usefull for multiple item carousels). For it to work it is required to add additional attribute: rn-carousel-items-per-slide=slide_amount_per_click (better to use together with rn-carousel-controls). For reference please see the demo.
If attribute is empty or attribute value exceeds amount of available total slide amount, or attribute is not added - carousel works with default settings - one slide per click.

… one click (usefull for multiple item carousels). For it to work it is required to add aditional attribute: rn-carousel-items-per-slide=slide_amount_per_click. For reference please see the demo. If argument is empty or not added - carousel works with default settings - one slide per click.
@@ -292,7 +292,8 @@ angular.module('angular-carousel').run(['$templateCache', function($templateCach
intialState = true,
animating = false,
mouseUpBound = false,
locked = false;
locked = false,
slidesPerClickLimit = parseInt(iAttributes.rnCarouselItemsPerSlide);
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

slidesPerClickLimit = parseInt(iAttributes.rnCarouselItemsPerSlide) || 1;
Also, I'd move it to defaultOptions.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants