SearchPlaceholderText<T>(SelectionPrompt<T>, string) Method

Sets the text that will be displayed when no search text has been entered.
public static SelectionPrompt<T> SearchPlaceholderText<T>(this SelectionPrompt<T> obj, string text) 
    where T : notnull
Namespace
Spectre.Console
Containing Type
SelectionPromptExtensions

Parameters

T
The prompt result type.

Parameters

SelectionPrompt<T> obj
The prompt.
string text
The text to display.

Returns