Class SS.control.menuitem
menuitem. Menu Item. Buttons used in the menu control.
Defined in: SS.control.menuitem.js.
| Constructor Attributes | Constructor Name and Description |
|---|---|
| Field Attributes | Field Name and Description |
|---|---|
|
Cascading Stylesheet to apply to this menuitem.
|
|
|
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.
|
|
|
Redirect to the specified url on a click event.
|
| Method Attributes | Method Name and Description |
|---|---|
|
childMenu(m)
Look for child menus.
|
|
|
Click(e, m)
Handle the onclick event from the rendered menuitem {HTMLElement}.
|
|
|
close()
Closes the linked child menu, if it exists.
|
|
|
render()
Renders the menuitem in the context of a parent SS.control.menu.
|
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
