Forums de discussion
aui carousel pause options
Madasamy P, modifié il y a 6 années.
aui carousel pause options
Junior Member Publications: 90 Date d'inscription: 27/07/16 Publications récentes
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();
}
);
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();
}
);
Pankaj Kathiriya, modifié il y a 6 années.
RE: aui carousel pause options
Liferay Master Publications: 722 Date d'inscription: 05/08/10 Publications récentes
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.
It shows it has attribute called pauseOnHover.
Its better to provide proper information about issue and options tried.
Madasamy P, modifié il y a 6 années.
RE: aui carousel pause options
Junior Member Publications: 90 Date d'inscription: 27/07/16 Publications récentesPankaj 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
Kyle Joseph Stiemann, modifié il y a 6 années.
RE: aui carousel pause options
Liferay Master Publications: 760 Date d'inscription: 14/01/13 Publications récentes
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
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, modifié il y a 6 années.
RE: aui carousel pause options
Junior Member Publications: 90 Date d'inscription: 27/07/16 Publications récentes
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")??
It works perfectly , and I need another one
Is it possible to set activeIndex for carousel in javascript for same div ("#myCarousel")??
Kyle Joseph Stiemann, modifié il y a 6 années.
RE: aui carousel pause options
Liferay Master Publications: 760 Date d'inscription: 14/01/13 Publications récentes
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
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, modifié il y a 6 années.
RE: aui carousel pause options
Junior Member Publications: 90 Date d'inscription: 27/07/16 Publications récentes
Please give me an example kyle