Adjust the Slideshow api to handle more Splide options

Created on 27 June 2024, 10 months ago
Updated 4 September 2024, 8 months ago

Problem/Motivation

Splide has a long list of config options. https://splidejs.com/guides/options/ The Slideshow component currently handles the most commonly used options. It would be nice to be able to use more of these options without having to override the template component or write more JS.

Steps to reproduce

See https://www.drupal.org/project/prototype/issues/3457468 πŸ› Slideshow doesn't support mediaQuery option Needs work

Proposed resolution

Instead of explicitly setting individual properties in the data_splide twig variable within the template. Allow passing an arbitrary splide_options object that gets merged with some default values and then passed onto the data-splide attribute.

✨ Feature request
Status

Fixed

Version

5.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States pixelwhip

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024