0 out of 3 rated this helpful - Rate this topic

HtmlControl.HtmlControl method

Initializes a new instance of HtmlControl to define a new page control.

Syntax


htmlControl.htmlControl(element, options);

Parameters

element

Type: HTMLElement

The element that hosts the HtmlControl.

options

Type: Object

The options for configuring the page. The uri option is required in order to specify the source document for the content of the page. Other options are the ones used by the WinJS.Pages.render method.

Return value

This method does not return a value.

Examples

The following code shows how to use the HtmlControl constructor.


<div id="controlDiv"></div>
<script type="text/javascript">
    var htmlControl = new WinJS.UI.HtmlControl(document.getElementById("controlDiv"), {uri: 'samplePageControl.html'});
    WinJS.UI.processAll();
</script>

Requirements

Namespace

WinJS.UI

Library

Base.js

See also

HtmlControl

 

 

Build date: 12/5/2012

© 2013 Microsoft. All rights reserved.