Partager via


AutoSuggestBox.placeholderText property

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

Syntax

<div 
    data-win-control="WinJS.UI.AutoSuggestBox" 
    data-win-options="{ placeholderText : value}" >
</div>
var placeholderText = autoSuggestBox.placeholderText;
autoSuggestBox.placeholderText = placeholderText;

Property value

Type: String

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

Requirements

Minimum WinJS version

WinJS 4.0

Namespace

WinJS.UI

See also

AutoSuggestBox