splide icon indicating copy to clipboard operation
splide copied to clipboard

Get all Splide instances

Open udeveloping opened this issue 6 months ago • 0 comments
trafficstars

Checks

  • [x] Not a duplicate.
  • [x] Not a question, feature request, or anything other than a bug report directly related to Splide. Use Discussions for these topics: https://github.com/Splidejs/splide/discussions

Version

v4.1.4

Description

Hello! I'm using bricks in wordpress, and bricks let us create splide sliders into the builder, they use their own scripts and i'm writing my own and i need to access splide instances to play animations of slide elements. But can't figure how to use Splide.some_Global_Method to remove existing instances to reinit all splide instances and can set events. Or HOW to get all existing instances created by bricks scripts and bind "active" event to my function.

Reproduction Link

No response

Steps to Reproduce

Install bricks Create Nestable Slider Try to bind custom script to active event in previous created instances of splide

Expected Behaviour

I would be great that if we know we are working with preini Splide instances, we can access all those instances to bind custom behaviors to existing events like active event, for example!

udeveloping avatar May 01 '25 12:05 udeveloping