EN
このコンテンツは設定された言語で表示できません。英語版のページが表示されます。

Menu.removeEventListener method

Applies to Windows only

Removes an event handler that the addEventListener method registered.

Syntax


menu.removeEventListener(type, listener, useCapture);

Parameters

type

Type: String

The event type to unregister. It must be beforeshow, beforehide, aftershow, or afterhide.

listener

Type: Function

The event handler function to remove.

useCapture

Type: Boolean

Set to true to remove the capturing phase event handler; set to false to remove the bubbling phase event handler.

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