Condividi tramite


WinJS.UI.setOptions function

Adds the set of declaratively specified options (properties and events) to the specified control. If name of the options property begins with "on", the property value is a function and the control supports addEventListener.

Syntax

WinJS.UI.setOptions(control, options);

Parameters

  • control
    Type: object

    The control on which the properties and events are to be applied.

  • options
    Type: object

    The set of options that are specified declaratively.

Return value

This function does not return a value.

Requirements

Minimum WinJS version

WinJS 3.0

Namespace

WinJS.UI