Skip to content
This repository has been archived by the owner on May 5, 2021. It is now read-only.

Add Element Selector Option #381

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

rfvgyhn
Copy link

@rfvgyhn rfvgyhn commented Sep 20, 2014

This commit allows you to provider a selector to select which elements you want to be a part of the slider.

$("#gallery").nivoSlider({ slideSelector: "img" });

My use case was with using Ember and having to deal with <script> tags that are generated within the slider container.

<div id="gallery">
    <script id="metamorph-0-start"></script>
    <script id="metamorph-1-start"></script>
    <img src="someImage" />
    <img src="someImage2" />
    <script id="metamorph-1-end"></script>
    <script id="metamorph-0-end"></script>
</div>

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant