control method

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 WinJS version

WinJS 1.0

Namespace

WinJS.Utilities

See also

QueryCollection

 

 

Show:
© 2017 Microsoft