Class Reference
IRIS for UNIX 2024.1.2
InterSystems: The power behind what matters   
Documentation  Search
  [USER] >  [%ZEN] >  [Component] >  [accordionMenu]
Private  Storage   

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.

Inventory

Parameters Properties Methods Queries Indices ForeignKeys Triggers
2 4 9


Summary

Properties
%condition %controller %import %includeFiles
%page %resource align aux
composite containerStyle controller controllerId
dragEnabled dropEnabled enclosingClass enclosingStyle
error height hidden hint
hintClass hintStyle id index
label labelClass labelDisabledClass labelStyle
name onafterdrag onbeforedrag ondrag
ondrop ongetdata onhide onnotifyView
onrefresh onselect onshow onupdate
parent selectedIndex showLabel slice
style title tuple valign
visible width window

Methods
%AddToSaveSet %Attr %BindExport %ClassIsLatestVersion
%ClassName %ConstructClone %DispatchClassMethod %DispatchGetModified
%DispatchGetProperty %DispatchMethod %DispatchSetModified %DispatchSetMultidimProperty
%DispatchSetProperty %DrawComponentHTML %DrawHTML %DrawJSStrings
%EnclosingDivId %Eval %EvalC %Extends
%ForceClientRender %GetEventHandlers %GetParameter %GetXMLName
%IsA %IsModified %MakeId %New
%NormalizeObject %ObjectModified %OnAddToPageAfter %OnAddToPageBefore
%OnDrawEnclosingDiv %OnDrawObjectProperties %OnObjectSynch %OnZENDeserialize
%OriginalNamespace %PackageName %QuoteValue %QuoteValueL10N
%RemoveFromSaveSet %Self %SerializeObject %SetModified
%ValidateObject XMLDTD XMLExport XMLExportToStream
XMLExportToString XMLNew XMLSchema XMLSchemaNamespace
XMLSchemaType adjustParentMenuSize dragFinishHandler dragHandler
dragNotifyHandler dragStartHandler dropHandler dropStartHandler
exposeComponent findElement fireOnUpdateEvent getController
getEnclosingDiv getHidden getHintElement getLabelElement
getMenuHTML getModel getProperty getSettings
getType invokeSuper isOfType makeId
menuActionHandler menuClickHandler notifyViewHandler onCreate
onDelete onDisplayHandler onEndModalHandler onPopupAction
onRefreshContents onSerialize onStartModalHandler onloadHandler
onunloadHandler onupdateHandler refreshContents render
renderContents renderSVG selectItem sendEventToController
setControllerId setHidden setOverlayMode setProperty
startProgressBar stopProgressBar


Parameters

• parameter DEFAULTENCLOSINGCLASS = "zam-menu";
Subclasses can set this to change default enclosingClass used for this component.
• parameter SYSMODULE;
Do not include in "form" module.

Properties

• 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.

Methods

• 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).


Copyright (c) 2025 by InterSystems Corporation. Cambridge, Massachusetts, U.S.A. All rights reserved. Confidential property of InterSystems Corporation.