SearchBox.onquerychanged event

Applies to Windows only

Raised when the user or the app changes the queryText.

Syntax


<div 
    data-win-control="WinJS.UI.SearchBox" 
    data-win-options="{onquerychanged : handler}">
</div>


function handler(eventInfo) { /* Your code */ }
 
// addEventListener syntax
searchBox.addEventListener("querychanged", handler);
searchBox.removeEventListener("querychanged", handler);


Event information

SynchronousNo
BubblesYes
CancelableYes

 

Event handler parameters

eventInfo

Type: CustomEvent

An object that contains information about the event. The detail property of this object contains the following sub-properties:

detail.language

The current locale.

detail.queryText

The new query text.

detail.linguisticDetails

A SearchQueryLinguisticDetails object that provides linguistic info about the query text.

Requirements

Minimum supported client

Windows 8.1 [Windows Store apps only]

Minimum supported server

Windows Server 2012 R2 [Windows Store apps only]

Minimum supported phone

None supported

Namespace

WinJS.UI

Library

Ui.js

See also

SearchBox

 

 

Show:
© 2014 Microsoft