QueryCollection.control method

Applies to Windows and Windows Phone

Creates controls that are attached to the elements in this QueryCollection, if the ctor parameter is a function, or configures the controls that are attached to the elements in this QueryCollection, if the ctor parameter is an object.

Syntax


var queryCollection = queryCollection.control(ctor, options);

Parameters

ctor

Type:

If this parameter is a function, it is a constructor function that is used to create controls to attach to the elements. If it is an object, it is the set of options passed to the controls.

options

Type: Object

The options passed to the newly-created controls.

Return value

Type: QueryCollection

This QueryCollection object.

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.Utilities

Library

Winjs.js

See also

QueryCollection

 

 

Show:
© 2015 Microsoft