Skip to content
This repository was archived by the owner on Nov 18, 2024. It is now read-only.
This repository was archived by the owner on Nov 18, 2024. It is now read-only.

Make API access available in callback loaded #567

@thinsoldier

Description

@thinsoldier

As it is right now, the only way I can find to access the api (play, stop, next, prev, goto, etc) is by getting it from the data attribute the plugin creates on the original element containing the slides.

sjsApi = $('#slides').data('plugin_slidesjs');

But this data attribute does not yet exist at the time when the loaded callback occurs, so there is no way to access the api from within a callback function.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions