i18n Menu
Permalink
How do I make a drop down menu like when you click to edit/add a block? See attached for reference.
I've been looking through the code and can't seem to find an example.
I've been looking through the code and can't seem to find an example.
Sorry, the above assumes you have the dialog window js active as well. Other wise the menu item is just a regular link.
var menuItems = [ { 'title' : 'Add Something', 'iconURL' : CCM_IMAGE_PATH + '/icons/add.png', 'ID' : 'menuItem_' + $(this).attr("menuID"), 'URL' : '' }, {'break' : 1 }, { 'title' : 'Another Add Something', 'iconURL' : CCM_IMAGE_PATH + '/icons/add.png', 'ID' : 'menuItem_' + $(this).attr("menuID"), 'URL' : '' } ]
Hi,
Thanks for the code,
Minor correction needed to display the icons:
The closing ")" was missing from your code.
Thanks for the code,
Minor correction needed to display the icons:
<span style="background-image: url(' + iconURL +')">'
The closing ")" was missing from your code.
I think I am missing something here I am attempting to use this in the dashboard.
I have loaded the custom.js
But when I select the div, I get a "Uncaught ReferenceError: e is not defined", am I not including something here? I thought that the dialog js had been loaded?
I have loaded the custom.js
But when I select the div, I get a "Uncaught ReferenceError: e is not defined", am I not including something here? I thought that the dialog js had been loaded?
External JS File: