$(function () { var options; // Type: wijmo.menu.wijmenu.options $(".selector").wijmenu(options); });
function wijmenu;
$(function () { var options; // Type: wijmo.menu.wijmenu.options $(".selector").wijmenu(options); });
function wijmenu;
Object
wijmo.menu.wijmenu
Name | Description | |
---|---|---|
wijmenu Constructor |
Name | Description | |
---|---|---|
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. | |
add | Adds a child menuItem to the menuItem. | |
deactivate | The 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. | |
destroy | The destroy method removes the wijmenu functionality completely and returns the element to its pre-init state. | |
first | The first method defines the first menu item as the active item. | |
getItems | Gets the collection of child items. | |
hideAllMenus | The hideAllMenus method hides all menu items currently showing. | |
last | The last method defines the last menu item as the active item. | |
next | The 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. | |
nextPage | This 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. | |
previous | Get 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. | |
previousPage | This 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. | |
refresh | 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. | |
remove | Remove an item from the menu. | |
select | This method selects the active item which triggers the select event for that item. This event is useful for custom keyboard handling. | |
setItemDisabled | The setItemDisabled method allows the user to disable a specific menu item. | |
widget | Returns a jQuery object containing the original element or other relevant generated element. |