richardscarrott / jquery-ui-carousel

jQuery RS Carousel is a responsive and touch-enabled carousel written on top of jQuery and the jQuery UI Widget Factory providing a full and familiar API in less than 2.6kB minified and gzipped.
http://richardscarrott.github.io/jquery-ui-carousel/
192 stars 56 forks source link

Next/Previous - Don't display if one page or less #52

Closed ghost closed 11 years ago

ghost commented 11 years ago

Is there a way to make this possible? I would like to hide the Next/Prev actions when I have 1 page or less....Do I do this through CSS?

ghost commented 11 years ago

Never mind. Sorry!

richardscarrott commented 11 years ago

Yeah just for other peoples reference it should be done using the rs-carousel-disabled className in CSS which is automatically applied if there's less than two pages:

.rs-carousel-disabled .rs-carousel-action {
    disabled: none;
 }