Foros de discusión

aui carousel pause options

Madasamy P, modificado hace 6 años.

aui carousel pause options

Junior Member Mensajes: 90 Fecha de incorporación: 27/07/16 Mensajes recientes
How to set pause aui carousel at default in following

AUI().use(
'aui-carousel','aui-dialog','aui-dialog-iframe',
function(Y) {
new Y.Carousel(
{
contentBox: '#myCarousel',
modal: true,
activeIndex: 2,
height: 250,
width: 250,
}
).render();


}
);
thumbnail
Pankaj Kathiriya, modificado hace 6 años.

RE: aui carousel pause options

Liferay Master Mensajes: 722 Fecha de incorporación: 5/08/10 Mensajes recientes
Refer http://alloyui.com/api/classes/A.Carousel.html

It shows it has attribute called pauseOnHover.

Its better to provide proper information about issue and options tried.
Madasamy P, modificado hace 6 años.

RE: aui carousel pause options

Junior Member Mensajes: 90 Fecha de incorporación: 27/07/16 Mensajes recientes
Pankaj Kathiriya:
Refer http://alloyui.com/api/classes/A.Carousel.html

It shows it has attribute called pauseOnHover.

Its better to provide proper information about issue and options tried.



But I need pause option as default when opening the carousel
thumbnail
Kyle Joseph Stiemann, modificado hace 6 años.

RE: aui carousel pause options

Liferay Master Mensajes: 760 Fecha de incorporación: 14/01/13 Mensajes recientes
Hi Madasamy,
You can pause the Carousel initially by setting the playing attribute to false:

AUI().use(
'aui-carousel','aui-dialog','aui-dialog-iframe',
function(Y) {
new Y.Carousel({
contentBox: '#myCarousel',
modal: true,
activeIndex: 2,
height: 250,
width: 250,
playing: false
}).render();
});


- Kyle
Madasamy P, modificado hace 6 años.

RE: aui carousel pause options

Junior Member Mensajes: 90 Fecha de incorporación: 27/07/16 Mensajes recientes
Thank you Kyle

It works perfectly , and I need another one

Is it possible to set activeIndex for carousel in javascript for same div ("#myCarousel")??
thumbnail
Kyle Joseph Stiemann, modificado hace 6 años.

RE: aui carousel pause options

Liferay Master Mensajes: 760 Fecha de incorporación: 14/01/13 Mensajes recientes
Glad it's working for you!

You can set the active carousel item by calling Carousel.item(index) on your carousel instance. For example:

carousel.item(2); // Selects the third option.

- Kyle
Madasamy P, modificado hace 6 años.

RE: aui carousel pause options

Junior Member Mensajes: 90 Fecha de incorporación: 27/07/16 Mensajes recientes
Please give me an example kyle