Wijmo UI for the Web
refresh Method
The 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.
Syntax
Javascript (Usage) 
$(function () {
    var returnsValue; // Type:  any
    returnsValue = $(".selector").wijmenu("refresh");
});
Javascript (Specification) 
function refresh() : any;
Example
//Adds a new item and refresh menu.
menu.append("<li><a href='#'>new item</a></li>").wijmenu("refresh");
Browser Compatibility
7
5
5

See Also

Reference

wijmenu type
wijmenu jQuery Widget

 

 


© 2013 All Rights Reserved.

Send comments on this topic.