Wijmo UI for the Web
wijmenu type
Syntax
Javascript (Usage) 
$(function () {
    var options; // Type:  wijmo.menu.wijmenu.options
     
    $(".selector").wijmenu(options);
});
Javascript (Specification) 
function wijmenu;
Inheritance Hierarchy

Object
      wijmo.menu.wijmenu

Browser Compatibility
7
5
5
Constructors
 NameDescription
public Constructorwijmenu Constructor  
Top
Methods
 NameDescription
public MethodactivateThis 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.  
public MethodaddAdds a child menuItem to the menuItem.  
public MethoddeactivateThe deactivate method clears the current selection. This method is useful when reopening a menu which you previously selected an item. If you don't call this method then an item which you selected before allowing the menu to close will remain highlighted when the menu is reopened.  
public MethoddestroyThe destroy method removes the wijmenu functionality completely and returns the element to its pre-init state.  
public MethodfirstThe first method defines the first menu item as the active item.  
public MethodgetItemsGets the collection of child items.  
public MethodhideAllMenusThe hideAllMenus method hides all menu items currently showing.  
public MethodlastThe last method defines the last menu item as the active item.  
public MethodnextThe next method gets the next selectable item. The first item is selected if no item is active or the last one is active. It returns null if none is selectable.  
public MethodnextPageThis method is similar to the "next" method, but it jumps a whole page to the next page instead of to the next selectable item. You can call this method when you are using an iPod-style menu.  
public MethodpreviousGet the previous selectable item. It selects the last item if no item is active or if the first item is active. It returns null if no previous item is selectable.  
public MethodpreviousPageThis method is similar to the "previous" method, but it jumps a whole page to the previous page. You can call this method when you're using an iPod-style menu.  
public MethodrefreshThe method is used to refresh the menu when DOM operations add or replace a menu item. For example, if you add a new menu item through "menu.append," then you can use the refresh method to make sure that the new menu item appears in the menu.  
public MethodremoveRemove an item from the menu.  
public MethodselectThis method selects the active item which triggers the select event for that item. This event is useful for custom keyboard handling.  
public MethodsetItemDisabledThe setItemDisabled method allows the user to disable a specific menu item.  
public MethodwidgetReturns a jQuery object containing the original element or other relevant generated element.  
Top
See Also

Reference

wijmo.menu Namespace

 

 


© 2013 All Rights Reserved.

Send comments on this topic.