EN
本內容沒有您的語言版本,但有英文版本。

Menu.showCommands method

Applies to Windows only

Shows the specified commands of the Menu.

Syntax


menu.showCommands(commands, immediate);

Parameters

commands

Type: Array

The commands to show. The array elements may be Menu 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 show the commands immediately, without animating them; otherwise, false.

Return value

This method does not return a value.

Requirements

Minimum supported client

Windows 8 [Windows Store apps only]

Minimum supported server

Windows Server 2012 [Windows Store apps only]

Minimum supported phone

None supported

Namespace

WinJS.UI

Library

Ui.js

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

 

 

顯示:
© 2014 Microsoft