SearchBox.disabled property

Applies to Windows only

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 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