Expand Minimize

WinJS.UI.setOptions function

Applies to Windows and Windows Phone

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 supported client

Windows 8 [Windows Store apps only]

Minimum supported server

Windows Server 2012 [Windows Store apps only]

Minimum supported phone

Windows Phone 8.1

Namespace

WinJS.UI

Library

Base.js

 

 

Show:
© 2014 Microsoft