name |
String
|
HTMLElement
|
<optional>
|
if string then menu item name. If HTMLElement then item element. |
title |
String
|
<optional>
|
menu item title. |
id |
String
|
<optional>
|
menu item identifier. |
style |
String
|
<optional>
|
menu item style. Example: "float: right;". |
items |
Array
|
<optional>
|
array of submenu items. Same as menu item. |
onclick |
function
|
<optional>
|
function(event) called when user has clicked a menu item. event - event details. |
drop |
Object
|
<optional>
|
direction of drop of the submenu.
Following directions is available:
If string then "up" - drop submenu to up. "left" - shift submenu to left.
If object then following members is available:
Properties
Name |
Type |
Attributes |
Description |
up |
boolean
|
<optional>
|
true - drop submenu to up. |
left |
boolean
|
<optional>
|
true - shift submenu to left. |
|
radio |
boolean
|
<optional>
|
true - defines a radio menu item. |
checkbox |
boolean
|
<optional>
|
true - defines a checkbox menu item. |
checked |
boolean
|
<optional>
|
true - checked state of a checkbox or radio menu item. |