Fórumok

Is there any Liferay supported Javascript to create liferay action menus

thumbnail
Gurumurthy Godlaveeti, módosítva 9 év-val korábban

Is there any Liferay supported Javascript to create liferay action menus

Regular Member Bejegyzések: 208 Csatlakozás dátuma: 2011.08.12. Legújabb bejegyzések
Hi Guys,

We are able to create the liferay action menu using some inbuilt tags ( <liferay-ui:icon-menu> & <liferay-ui:icon> ) but I have requirement to create same action menu using Javascript/Alloy UI. Please guide the code if its available.

Thanks
thumbnail
Nagendra Kumar Busam, módosítva 9 év-val korábban

R: Is there any Liferay supported Javascript to create liferay action menus

Liferay Master Bejegyzések: 678 Csatlakozás dátuma: 2009.07.07. Legújabb bejegyzések
Internally AFAIK Liferay uses AUI. I didn't get exActly what you are trying to achieve , as we have a lib provided by Liferay. You can always write your own custom lib similar to Liferay

Brief more about your requirement if default is not supporting your requirement

Sent from my iPhone with Liferay.com Forums
thumbnail
Gurumurthy Godlaveeti, módosítva 9 év-val korábban

RE: R: Is there any Liferay supported Javascript to create liferay action m

Regular Member Bejegyzések: 208 Csatlakozás dátuma: 2011.08.12. Legújabb bejegyzések
Hi Guys,


I want to write <liferay-ui:icon-menu/> tag in javascript but I am getting NullPointerException issue while adding it also so please correct me if I have written any wrong code here or else Guide me how can I make this possible either by using java script or with Liferay inbuilt tags.

The code in page.jsp:

<aui:script>
Liferay.provide(
window,
'<%= randomNamespace %>addAssetLink',
function(entryId, entryType, entryTitle,scope) {
var A = AUI();
var searchContainerName = '<%= portletResponse.getNamespace() %>assetLinksSearchContainer';

searchContainer = Liferay.SearchContainer.get(searchContainerName);
var entryLink = '<liferay-ui:icon-menu id="1001"></liferay-ui:icon-menu>';


searchContainer.addRow([entryType, entryTitle,scope, entryLink], entryId);
searchContainer.updateDataStore();
},
['liferay-search-container']
);

</aui:script>


Thanks
thumbnail
Daniele Baggio, módosítva 9 év-val korábban

R: Is there any Liferay supported Javascript to create liferay action menus

Expert Bejegyzések: 336 Csatlakozás dátuma: 2008.12.05. Legújabb bejegyzések
aui:nav and aui:navitem are taglibs to create action menu like bootstrap navigation.
Are you on 6.2?

Sent from my Android device with Liferay.com Forums
thumbnail
Gurumurthy Godlaveeti, módosítva 9 év-val korábban

RE: R: Is there any Liferay supported Javascript to create liferay action m

Regular Member Bejegyzések: 208 Csatlakozás dátuma: 2011.08.12. Legújabb bejegyzések
Nope, I am using Liferay 6.1.30 GA3 EE version.

Can you please send me the sample code/reference links if you have.

Thanks