SearchBox.placeholderText property

Applies to Windows only

Gets or sets the placeholder text for the SearchBox. This text is displayed if there is no other text in the input box.

Syntax


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


var placeholderText = searchBox.placeholderText;
searchBox.placeholderText = placeholderText;

Property value

Type: String

The placeholder text for the SearchBox. The maximum length is 128 characters.

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