Class lw.Menu.action
Object
|
+--lw.Menu.action
- class
lw.Menu.action
Defines the values accesible during callback to
init routines, action routines, or bean routines.
Defined in lwmenu.js
See:
Field Summary |
<static> Object |
checked
|
<static> {int} |
ix
For action callback: the current index into menu. |
<static> {Object_Menu} |
menu
For action callback: the current menu. |
<static> {Node} |
node
For action callback: the DOM node causing this callback. |
Constructor Summary |
lw.Menu.action
(<lw.Menu> menu, <int> ix, <Node> node, <Event> evt)
Callback from menu: Evaluates the action associated with the current menu element.
|
checked
<static> Object checked
ix
<static> {int} ix
For action callback: the current index into menu.
The current menu element is accessible via
var action = lw.Menu.action;
var element = action.menu[action.index];
menu
<static> {Object_Menu} menu
For action callback: the current menu.
node
<static> {Node} node
For action callback: the DOM node causing this callback.
A value of null
indicates, that the callback to the action routine
occured while initializing a Toggle element without explicit init routine.
lw.Menu.action
lw.Menu.action(<lw.Menu> menu, <int> ix, <Node> node, <Event> evt)
Callback from menu: Evaluates the action associated with the current menu element.
The callback routines are defined in the Action or Toggle menu elements
as init routines, action routines, or bean routines.
They have access to the current menu object
thru the lw.Menu.action.XXX
members.
Parameters:
menu
- the menu; contains the current element at index ix
ix
- the index into the menu
node
- the DOM node of the menu element, that caused the action
evt
- optional: the the mouse event that caused the action (if any)
Copyright © 2006-2012 by Logics Software GmbH
Documentation generated by
JSDoc on Mon Mar 3 17:24:18 2014