Freigeben über


WinJS.UI.SearchBox constructor

[SearchBox is no longer available for use as of Windows 10. Instead, use AutoSuggestBox. ]

Creates a new SearchBox.

Syntax

var searchBox = new WinJS.UI.SearchBox(element, options);

Parameters

  • element
    Type: Object

    The DOM element hosts the new SearchBox.

  • options
    Type: Object

    An object that contains one or more property/value pairs to apply to the new control. Each property of the options object corresponds to one of the control's properties or events.

Requirements

Minimum WinJS version

WinJS 3.0

Namespace

WinJS.UI

See also

SearchBox