Partager via


Menu.hideCommands method

Hides the specified commands of the Menu.

Syntax

menu.hideCommands(commands, immediate);

Parameters

  • commands
    Type: Array

    The commands to hide. The array elements may be MenuCommand objects, or the string identifiers (IDs) of commands.

  • immediate
    Type: Boolean

    The parameter immediate is not supported and may be altered or unavailable in the future.

    true to hide the commands 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

Menu

MenuCommand

WinJS.UI Namespace

MenuCommand

Flyout

Displaying popups

Laying out your UI

HTML flyout control sample

Designers

Command patterns

Flyout

Guidelines for flyouts

Context menu

Guidelines for context menus