Skip to content

Add navigation buttons functionality#195

Open
hyperstown wants to merge 1 commit intolyfeyaj:masterfrom
hyperstown:nav-buttons
Open

Add navigation buttons functionality#195
hyperstown wants to merge 1 commit intolyfeyaj:masterfrom
hyperstown:nav-buttons

Conversation

@hyperstown
Copy link
Copy Markdown

Hi I've added option to easy add navigation buttons to the slider.
Now user can specify in options navButtons: true to easy add previous and next button. Button text can also be customized using navNextText and navPrevText parameters in options.

var mySwipe = new Swipe(document.getElementById('slider'), {
  startSlide: 0,
  speed: 400,
  draggable: true,
  continuous: false,
  navButtons: true, // default false
  navNextText: 'next', // default value
  navPrevText: 'prev', // default value
  ignore: ".scroller",
});

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant