Number of Slides per Group Option needed

Created on 16 August 2023, 11 months ago
Updated 18 April 2024, 2 months ago

Problem/Motivation

Currently when the number of slides is set to a number greater than 1 if you click the next arrow it will only move one slide at a time vs. replacing all of the slides so it would be useful to be able to utilize the slidesPerGroup option - from the Docs -https://swiperjs.com/swiper-api#param-slidesPerGroup

Steps to reproduce

The option is not currently included.

Proposed resolution

Add the option to the SwiperFormatterForm so that it can be saved.

Remaining tasks

User interface changes

An additional text-based input will be added below Number of slides per view

API changes

Data model changes

✨ Feature request
Status

Needs review

Version

2.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States robbt

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @robbt
  • Status changed to Needs review 11 months ago
  • πŸ‡ΊπŸ‡ΈUnited States robbt

    Here is a simple patch that adds the option to slidesPerGroup - might be worth adding slidesPerGroupAuto and hiding this option unless SlidesPerView is larger than 1 but as a simple way to add the option this seems to work.

  • πŸ‡³πŸ‡±Netherlands nk_

    Thanks! Finally I was able to grab some time to include this property too. It is enclosed in the new 2.0.x version, just released. Please also check out this issue about Breakpoints feature: https://www.drupal.org/project/swiper_formatter/issues/3441764 ✨ Breakpoints feature Needs review partially related.

    • nk_ β†’ committed 5f44f924 on 2.0.x
      Update and simplify README and add credit to robbt for issue #3381522.
      
Production build 0.69.0 2024