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