Options to specify a container for the pagination or navigation #2

Open
wants to merge 1 commit into
from

Projects

None yet

2 participants

@adamcoulombe

Two new options: navigationContainer & paginationContainer.

Lets you optionally pass in a jQuery element - eg. $(#myPaginationContainerSomewhereElseOnThePage)

It will append the pagination or navigation to the element you pass in instead of just the slider container which is not always where you want the controls.

@d3rson

How to use this Navigation Container?.. i put me navigation links with the class "wmuSliderNext" and "wmuSliderPrev" .. and this not work...

This allows you to specify a container element for your slider navigation elsewhere on the page (other than the default, which is the element which you initiate wmuSlider() on).

If you dont need this, maybe just use the source on the main branch https://github.com/pastawoua/wmuSlider

otherwise, the way it works, is you pass in a jquery element (not just a class name/selector ) to use as the navigation container. eg:

$(".wmuSlider").wmuSlider({
   navigationContainer: $("#someElementWhereverIWantOnThePage")
});

wmuSlider will add the pagination links the container you pass in automatically as long as you have navigationControl: true (which is the default setting)

@d3rson

thanks for help!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment