Thursday 15 January 2015

drop down menu - Liferay 6.2 Alloy UI Dropdown -



drop down menu - Liferay 6.2 Alloy UI Dropdown -

im trying create illustration work on liferay 6.2 installation: http://alloyui.com/tutorials/dropdown/

but reason not working me, have added code on view.jsp file within portlet, code:

<%@ taglib uri="http://java.sun.com/portlet_2_0" prefix="portlet" %> `<%@ taglib uri="http://liferay.com/tld/aui" prefix="aui" %> <nav class="navbar navbar-default"> <div class="container-fluid"> <div class="navbar-collapse"> <ul class="nav navbar-nav"> <li id="mydropdown" class="dropdown"> <a id="mytrigger" href="#" class="dropdown-toggle">dropdown <b class="caret"></b></a> <ul class="dropdown-menu" style="padding: 8px"> close on escape </ul> </li> </ul> </div> </div> </nav>

and right after alloy ui code:

<aui:script> yui().use( 'aui-dropdown', function(y) { new y.dropdown( { boundingbox: '#mydropdown', trigger: '#mytrigger', hideonclickoutside: false, hideonesc: true, open: true } ).render(); } ); </aui:script>

what dropdown link can't find way create "i close on escape" dropdown when click trigger. (just in case helps guys thought of what's going on) when seek portlet on website im not able create dropdown work on liferay dockbar, guess it's wrong yui code.

it not possible utilize aui-dropdown in liferay 6.2.

according liferay integration wiki article, liferay 6.2 uses alloyui 2.0.x. aui-dropdown created in commit e9b3a1035a36148f9ea75c15796d0d4d342a3452, , first tag contain commit 3.0.0pr1~164,* means aui-dropdown not in alloyui 2.0.x.

note: it's not possible upgrade new major version of alloyui in liferay either.

*found using:

git describe --contains e9b3a1035a36148f9ea75c15796d0d4d342a3452

drop-down-menu liferay yui alloy-ui

No comments:

Post a Comment