Spiderscript Home
Class Index | File Index

Classes




Spiderscript Home
Class Index | File Index

Classes




Class SS.control.menuitem

menuitem. Menu Item. Buttons used in the menu control.
Defined in: SS.control.menuitem.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
Field Summary
Field Attributes Field Name and Description
 
css
Cascading Stylesheet to apply to this menuitem.
 
id
Identifier of the menuitem control.
 
or {String} which is executed or evaluated when the user clicks on this menuitem.
 
or {String} which is executed or evaluated when the user moves their mouse over this menuitem.
 
= ["vertical" | "horizontal"].
 
Window to open up the specified url.
 
url
Redirect to the specified url on a click event.
Method Summary
Method Attributes Method Name and Description
 
Look for child menus.
 
Click(e, m)
Handle the onclick event from the rendered menuitem {HTMLElement}.
 
Closes the linked child menu, if it exists.
 
Renders the menuitem in the context of a parent SS.control.menu.
Class Detail
SS.control.menuitem()
Field Detail
css
Cascading Stylesheet to apply to this menuitem.

id
Identifier of the menuitem control.

onclick
or {String} which is executed or evaluated when the user clicks on this menuitem.

onmouseover
or {String} which is executed or evaluated when the user moves their mouse over this menuitem.

orientation
= ["vertical" | "horizontal"]. Controls the direction of the menuitem.

target
Window to open up the specified url. Default = "_self"

url
Redirect to the specified url on a click event.
Method Detail
childMenu(m)
Look for child menus. if a child menu exists (there can only be one per menu item) then it needs to be displayed when the menuitem receives an onclick event.
Parameters:
m
Returns:
null

Click(e, m)
Handle the onclick event from the rendered menuitem {HTMLElement}.
Parameters:
e
m

close()
Closes the linked child menu, if it exists.

render()
Renders the menuitem in the context of a parent SS.control.menu.
Returns:
null

Documentation generated by JsDoc Toolkit 2.1.0 on Wed Sep 30 2009 09:31:09 GMT+0100 (BST)