WinJS.UI.setControl function

Given a DOM element and a control, attaches the control to the element.

Syntax


WinJS.UI.setControl(element, control);

Parameters

element

Type: DOMElement

Element to associate with the control.

control

Type: object

The control to attach to the element.

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]

Namespace

WinJS.UI

Library

Ui.js

 

 

Show:
© 2014 Microsoft