Enables the user to perform search queries and select suggestions.
Creates a new SearchBox.
The DOM element hosts the new SearchBox.
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.
Gets or sets whether the first suggestion is chosen when the user presses Enter.
Gets or sets a value that specifies whether the SearchBox is disabled. If the control is disabled, it won't receive focus.
Gets the DOM element that hosts the SearchBox.
Gets or sets a value that specifies whether the search box automatically receives focus when the user types into the app window.
Gets or sets the placeholder text for the SearchBox. This text is displayed if there is no other text in the input box.
Gets or sets the query text for the SearchBox.
Gets or sets the search history context. This context is used a secondary key (the app ID is the primary key) for storing search history.
Gets or sets a value that specifies whether search history is disabled.
Registers an event handler for the specified event.
The name of the event to handle. Note that you drop the "on" when specifying the event name. For example, instead of specifying "onclick", you specify "click".
The event handler function to associate with the event.
Set to true to register the event handler for the capturing phase; otherwise, set to false to register the event handler for the bubbling phase.
Raises an event of the specified type and with additional properties.
The type (name) of the event.
The set of additional properties to be attached to the event object when the event is raised.
boolean
true if preventDefault was called on the event, otherwise false.
Releases resources held by this SearchBox. Call this method when the SearchBox is no longer needed. After calling this method, the SearchBox becomes unusable.
Raised when the user or the app changes the queryText.
An object that contains information about the event. The detail property of this object contains the following sub-properties: detail.language, detail.queryText, detail.linguisticDetails.
Raised awhen the user clicks the search glyph or presses Enter.
An object that contains information about the event. The detail property of this object contains the following sub-properties: detail.language, detail.queryText, detail.linguisticDetails, detail.keyModifiers.
Raised when the app automatically redirects focus to the search box. This event can only be raised when the focusOnKeyboardInput property is set to true.
An object that contains information about the event. The detail property of this object contains the following sub-properties: detail.propertyName.
Raised when the user selects a suggested option for the search.
An object that contains information about the event. The detail property of this object contains the following sub-properties: detail.tag, detail.keyModifiers, detail.storageFile.
Raised when the system requests search suggestions from this app.
An object that contains information about the event. The detail property of this object contains the following sub-properties: detail.language, detail.linguisticDetails, detail.queryText, detail.searchSuggestionCollection.
Removes an event handler that the addEventListener method registered.
The name of the event that the event handler is registered for.
The event handler function to remove.
Set to true to remove the capturing phase event handler; set to false to remove the bubbling phase event handler.
Specifies whether suggestions based on local files are automatically displayed in the search pane, and defines the criteria that Windows uses to locate and filter these suggestions.
The new settings for local content suggestions.