Compartir a través de


SearchBox.searchHistoryDisabled property

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

Gets or sets a value that specifies whether search history is disabled.

Syntax

<div 
    data-win-control="WinJS.UI.SearchBox" 
    data-win-options="{ searchHistoryDisabled : value}" >
</div>
var searchHistoryDisabled = searchBox.searchHistoryDisabled;
searchBox.searchHistoryDisabled = searchHistoryDisabled;

Property value

Type: Boolean

true if search history is disabled; otherwise, false. The default value is false.

Requirements

Minimum WinJS version

WinJS 3.0

Namespace

WinJS.UI

See also

SearchBox