Skip to content

Get all Splide instances #1367

@udeveloping

Description

@udeveloping

Checks

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions