14 references to InputType
Aspire.Hosting (9)
ApplicationModel\InteractionService.cs (3)
105return await PromptInputAsync(title, message, new InteractionInput { InputType = InputType.Text, Label = inputLabel, Required = true, Placeholder = placeHolder }, options, cancellationToken).ConfigureAwait(false); 355public 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)
191private static InputType MapInputType(ApplicationModel.InputType inputType) 195case ApplicationModel.InputType.Text: 197case ApplicationModel.InputType.Password: 199case ApplicationModel.InputType.Select: 201case ApplicationModel.InputType.Checkbox: 203case ApplicationModel.InputType.Number:
Stress.AppHost (5)
Program.cs (5)
193new InteractionInput { InputType = InputType.Text, Label = "Name", Placeholder = "Enter name", Required = true }, 194new InteractionInput { InputType = InputType.Password, Label = "Password", Placeholder = "Enter password", Required = true }, 195new InteractionInput { InputType = InputType.Select, Label = "Dinner", Placeholder = "Select dinner", Required = true, Options = 214new InteractionInput { InputType = InputType.Number, Label = "Number of people", Placeholder = "Enter number of people", Value = "2", Required = true }, 215new InteractionInput { InputType = InputType.Checkbox, Label = "Remember me", Placeholder = "What does this do?", Required = true },