WinJS.UI.Pages.render function

0 out of 5 rated this helpful - Rate this topic

Creates a PageControl from the specified URI and inserts it inside the specified element.

Syntax


WinJS.UI.Pages.render(uri, element, options, parentedPromise).done( /* Your success and error handlers */ );

Parameters

uri

Type: String

The URI for the content that defines the page.

element

Type: DOMElement

The DOM element to which the PageControl is appended.

options [optional]

Type: Object

An object that contains one or more property/value pairs to apply to the new PageControl. How these property/value pairs are used (or not used) depends on the implementation of that particular PageControl.

parentedPromise [optional]

Type: Promise

A Promise that is fulfilled when the new PageControl is done rendering and its contents becomes the child of element.

Return value

Type: Promise

A promise that is fulfilled when rendering is complete, if asynchronous processing is necessary. If not, returns nothing.

Requirements

Namespace

WinJS.UI.Pages

Library

Base.js

See also

Navigation design for Windows Store apps
Quickstart: Adding Page controls
Adding a Page control item template
Quickstart: Using single-page navigation
HTML PageControl sample

 

 

Build date: 12/5/2012

Did you find this helpful?
(1500 characters remaining)
© 2013 Microsoft. All rights reserved.