Forums

Home » Liferay Portal » English » 3. Development

Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Yale Yu
How to use pass a custom menu to AUI Carosel
April 18, 2012 7:59 AM
Answer

Yale Yu

Rank: New Member

Posts: 6

Join Date: March 29, 2012

Recent Posts

Hi,

I find that carosel in LF6.1 support pass a custom menu to render carsel, in the source code I find some attribute like "nodeMenu" or "nodeMenuItemSelector", I tried but still don't know how to using it.

Anyone can tell me how to use Carosel with custom menu? Sample code is appreciated.

Thanks.
Yale Yu
RE: How to use pass a custom menu to AUI Carosel
April 19, 2012 12:02 AM
Answer

Yale Yu

Rank: New Member

Posts: 6

Join Date: March 29, 2012

Recent Posts

I have got the usage from :
http://issues.liferay.com/browse/AUI-389


1<ul id="customMenu">
2<li class="aui-carousel-menu-play">Play/Pause</li>
3<li class="aui-carousel-menu-prev">Previous</li>
4<li class="aui-carousel-menu-next">Next</li>
5<li class="aui-carousel-menu-index">1</li>
6<li class="aui-carousel-menu-index">2</li>
7<li class="aui-carousel-menu-index">3</li>
8</ul>

You could configure the carousel to use this menu with:
1new A.Carousel({ ... nodeMenu: '#customMenu', nodeMenuItemSelector: 'li' }).render();
m j
RE: How to use pass a custom menu to AUI Carosel
November 7, 2012 2:08 AM
Answer

m j

Rank: New Member

Posts: 1

Join Date: November 7, 2012

Recent Posts

Hi,
Is it so, that this custom menu thing works only in LR 6.1?
I've tried to get it work in LR 6.0.6 but no success...
Thanks.