deprecatedclass %ZEN.Component.accordionMenu
extends component, dataView
Implements a simple HTML5 accordion menu component.
This is an HTML5 component; it will only correctly run on HTML5 compliant browsers.
parameter DEFAULTENCLOSINGCLASS = "zam-menu";
Subclasses can set this to change default enclosingClass used for this
component.
parameter SYSMODULE;
Do not include in "form" module.
property ongetdata
as %ZEN.Datatype.eventHandler;
ongetdata event handler:
If defined, this event is returns an array of items to be displayed within the menu.
property onselect
as %ZEN.Datatype.eventHandler;
onselect event handler:
If defined, this event is fired when
the user clicks on a item within the menu.
property selectedIndex
as %ZEN.Datatype.string;
Current selected item.
This is a string of the form 'index1,index2,...', where each index is the 0-based
ordinal position of a menu, its first level child, etc.
property style
as %ZEN.Datatype.style;
Additional style to apply to items in the menu.
method adjustParentMenuSize(menuId, level, id)
[ Language = javascript ]
Adjust the size of a menu item's parents.
method getMenuHTML(content, menuId)
[ Language = javascript ]
Get HTML for a dynamic menu based on the given content object graph.
Each node in the graph may define key, caption,action,
targetId, image, and children.
method getModel()
[ Language = javascript ]
Get the model used to drive the menu.
method menuActionHandler(itemId, key, action, targetId)
[ Language = javascript ]
Action handler for menu item.
method menuClickHandler(evt, id, key, action, targetId)
[ Language = javascript ]
User click on a menu item.
method notifyViewHandler(reason, data1, data2, data3)
[ Language = javascript ]
Notification that the dataController associated with this grid
has raised an event.
method renderContents()
[ Language = javascript ]
Client-side method to render this component.
method selectItem(index)
[ Language = javascript ]
Select a given menu item and expand it (if it has children).
index is the index number of the menu item (0-based).