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

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.
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