MenuCommand.onclick property
Gets or sets the function to be invoked when the command is clicked.
Syntax
var onclick = menuCommand.onclick;
menuCommand.onclick = onclick;
Property value
Type: function
The function to be invoked.
Remarks
This is equivalent to calling addEventListener("click", function, false);.
Requirements
Minimum WinJS version |
WinJS 1.0 |
Namespace |
WinJS.UI |
See also
Designers
Guidelines for flyouts
Guidelines for context menus