Поделиться через


WinJS.UI.Command constructor

Creates a new Command object.

Syntax

var command = new WinJS.UI.Command(element, options);

Parameters

  • element
    Type: HTMLElement

    The DOM element that hosts the control.

  • options [optional]
    Type: Object

    An 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

See also

Command