WinJS.UI.Command constructor
Creates a new Command object.
Syntax
var command = new WinJS.UI.Command(element, options);
Parameters
element
Type: HTMLElementThe DOM element that hosts the control.
options [optional]
Type: ObjectAn object that contains one or more property/value pairs to apply to the new Command. Each property of the options object corresponds to one of the control's properties or events. Event names must begin with "on".
Requirements
Namespace |
WinJS.UI |
Library |
Ui.js |