Creates a drop down menu of links
Usage:
[{MenuItem title="menu title" options="comma separated list of menu options"}]
Menu Items must be encapsulated in StartMenu and EndMenu elements e.g.
[{StartMenu}]
[{MenuItem title="File" options="New,Save,SaveAs,Exit"}]
[{MenuItem title="Edit" options="Undo,Cut,Copy,Paste"}]
[{EndMenu}]
renderer.sjs
var title = extension.getAttributeValueByName("title");
var items = extension.getAttributeValueByName("options");
if(title!=null & items!=null)
{
title = new String(title);
items = new String(items).split(",");
data = " | ";
data += " | | ";
return data;
}
else
{
return "Invalid Menu. Missing title or options attribute given.";
}