Created
July 22, 2018 22:11
-
-
Save cmaggiulli/ec719efe716630a4717b539557be6e15 to your computer and use it in GitHub Desktop.
Best way to add an AUI Module in Liferay 6.2
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
AUI({ | |
modules: { | |
'mymodule': { | |
fullpath:'/my-theme/js/mymodule.js', //can be from theme or portlet | |
requires: [ 'aui-base'] | |
} | |
} | |
}).use('mymodule',function(A){ | |
//mymodule is available here | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment