Skip to content

Expose children (slides DOM elements) list as a public interface for production version (the alias for getImgs) #42

@WhereJuly

Description

@WhereJuly

Thanks for the tiny yet powerful slider.

In order to make it even more capable could you please expose the children list as a public interface (not only for testing as you do it now via getImgs: () => imgs,)?

This opens a world of new possibilities to add dots or image previews (either passive decoration or active controller elements) to the slider. Yet this update is just a minute to introduce.

This could be something like simpleslider.children array with native JS length property and all the JS array prototype functions. This would as well expose the slides' DOM elements for more customization.

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