1 write to Input
Aspire.Dashboard (1)
Model\Interaction\InputViewModel.cs (1)
42Input = input;
25 references to Input
Aspire.Dashboard (25)
Components\Dialogs\InteractionsInputDialog.razor.cs (12)
141_validationMessages.Add(field, $"{inputModel.Input.Label} is required."); 160_validationMessages.Add(field, $"{inputModel.Input.Label} is required."); 167if (inputModel.Input.UpdateStateOnChange) 178var fieldName = inputModel.Input.InputType switch 189return inputModel.Input.Required && 190inputModel.Input.InputType != InputType.Boolean && 213inputModel.Input.MaxFileSize > 0 ? inputModel.Input.MaxFileSize : InputViewModel.DefaultMaxUploadedFileBytes; 217if (!string.IsNullOrEmpty(inputModel.Input.Placeholder)) 219return inputModel.Input.Placeholder; 222return inputModel.Input.AllowMultipleFiles 243var fileId = await Content.DashboardClient.UploadFileAsync(stream, file.Name, file.Size, Content.Interaction.InteractionId, inputModel.Input.Name, _disposalCts.Token);
Model\Interaction\InputViewModel.cs (13)
37if (Input is not null && !ShouldUseIncomingValue(Input, input)) 39input.Value = Input.Value; 78public string InputKey => $"{Input.Name}_{ChoiceVersion}"; 102get => Input.Value; 103set => Input.Value = value; 109get => bool.TryParse(Input.Value, out var result) && result; 110set => Input.Value = value ? "true" : "false"; 116get => int.TryParse(Input.Value, CultureInfo.InvariantCulture, out var result) ? result : null; 117set => Input.Value = value?.ToString(CultureInfo.InvariantCulture) ?? string.Empty; 120public bool InputDisabled => Input.Disabled || Input.Loading; 135Input.Value = successfulRefs.Count > 0