Menu.showOnlyCommands method
Shows the specified commands of the Menu while hiding all other commands.
Syntax
menu.showOnlyCommands(commands, immediate);
Parameters
commands
Type: ArrayThe commands to show. The array elements may be MenuCommand objects, or the string identifiers (IDs) of commands.
immediate
Type: BooleanThe parameter immediate is not supported and may be altered or unavailable in the future.
true to show the specified commands (and hide the others) immediately, without animating them; otherwise, false.
Return value
This method does not return a value.
Requirements
Minimum WinJS version |
WinJS 1.0 |
Namespace |
WinJS.UI |
See also
MenuCommand
Designers
Guidelines for flyouts
Guidelines for context menus