SearchBox.disabled property

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

Gets or sets a value that specifies whether the SearchBox is disabled. If the control is disabled, it won't receive focus.

Syntax

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

Property value

Type: Boolean

true if the control is disabled; otherwise, false.

Requirements

Minimum WinJS version

WinJS 3.0

Namespace

WinJS.UI

See also

SearchBox