14 references to InputType
Aspire.Hosting (9)
ApplicationModel\InteractionService.cs (3)
105
return await PromptInputAsync(title, message, new InteractionInput { InputType =
InputType
.Text, Label = inputLabel, Required = true, Placeholder = placeHolder }, options, cancellationToken).ConfigureAwait(false);
355
public required
InputType
InputType { get; init; }
363
/// Gets or sets the options for the input. Only used by <see cref="
InputType
.Select"/> inputs.
Dashboard\DashboardService.cs (6)
191
private static InputType MapInputType(ApplicationModel.
InputType
inputType)
195
case ApplicationModel.
InputType
.Text:
197
case ApplicationModel.
InputType
.Password:
199
case ApplicationModel.
InputType
.Select:
201
case ApplicationModel.
InputType
.Checkbox:
203
case ApplicationModel.
InputType
.Number:
Stress.AppHost (5)
Program.cs (5)
193
new InteractionInput { InputType =
InputType
.Text, Label = "Name", Placeholder = "Enter name", Required = true },
194
new InteractionInput { InputType =
InputType
.Password, Label = "Password", Placeholder = "Enter password", Required = true },
195
new InteractionInput { InputType =
InputType
.Select, Label = "Dinner", Placeholder = "Select dinner", Required = true, Options =
214
new InteractionInput { InputType =
InputType
.Number, Label = "Number of people", Placeholder = "Enter number of people", Value = "2", Required = true },
215
new InteractionInput { InputType =
InputType
.Checkbox, Label = "Remember me", Placeholder = "What does this do?", Required = true },