Wijmo UI for the Web
activate Method
The javascript event.
A menu item to activate.
This method activates a menu item by deactivating the current item, scrolling the new item into view, and, if necessary,making it the active item, and triggering a focus event.
Syntax
Javascript (Usage) 
$(function () {
    var returnsValue; // Type:  any
    // Parameters
    var event; // Type:  event
    var item; // Type:  any
    
    returnsValue = $(".selector").wijmenu("activate", event, item);
});
Javascript (Specification) 
function activate( 
   event : event,
   item : any
) : any;

Parameters

event
The javascript event.
item
A menu item to activate.
Example
//Actives a menu item with "sub-item" class.
$(".selector").wijmenu("activate", null, $(".sub-item"));
Browser Compatibility
7
5
5

See Also

Reference

wijmenu type
wijmenu jQuery Widget

 

 


© 2013 All Rights Reserved.

Send comments on this topic.