Module WinJS

Index

Variables

Modules

Interfaces

Classes

Functions

Variables

validation: boolean

Can be set to show the results of a validation process.

Functions

log(message: string, tags: string, type: string)

You can provide an implementation of this method yourself, or use WinJS.Utilities.startLog to create one that logs to the JavaScript console.

Parameters

  • message: string

    The message to log.

  • tags: string

    The tag or tags to categorize the message (winjs, winjs controls, etc.).

  • type: string

    The type of message (error, warning, info, etc.).

strictProcessing()

This method has been deprecated. Strict processing is always on; you don't have to call this method to turn it on.

xhr(options: IXHROptions): Promise

Wraps calls to XMLHttpRequest in a promise.

Parameters

  • options: IXHROptions

    The options that are applied to the XMLHttpRequest object, as follows: type, url, user, password, responseType, headers, data, customRequestInitializer.

Returns

Promise

A promise that returns the XMLHttpRequest object when it completes.