Adds a child menuItem to the menuItem.
Syntax
Javascript (Usage) | |
---|
$(function () {
var returnsValue; // Type: any
// Parameters
var menuitem; // Type: any
var position; // Type: number
returnsValue = $(".selector").wijmenu("add", menuitem, position);
});
|
Javascript (Specification) | |
---|
function add(
: any,
: number
) : any;
|
Parameters
- menuitem
- The menuItem to be added
1.markup html.such as "<a>menuItem</a>" as a menuItem.
2.object options according to the options of wijmenuItem.
- position
- the position to insert at
Browser Compatibility
See Also
Reference
wijmenu type
wijmenu jQuery Widget