Files
AI-Studio/app/MindWork AI Studio/Components/ConfigurationText.razor
T

44 lines
1.3 KiB
Plaintext
Raw Normal View History

@inherits ConfigurationBaseCore
2026-08-11 20:14:21 +02:00
@if (this.ResetValue is null)
{
<MudTextField
T="string"
Text="@this.Text()"
TextChanged="@this.InternalUpdate"
Disabled="@this.IsDisabled"
Adornment="@this.IconAdornment"
2026-08-11 20:14:21 +02:00
AdornmentIcon="@this.Icon"
AdornmentColor="@this.IconColor"
UserAttributes="@SPELLCHECK_ATTRIBUTES"
Lines="@this.NumLines"
AutoGrow="@this.AutoGrow"
MaxLines="@this.GetMaxLines"
Immediate="@true"
Validation="@this.Validation"
Underline="false"
/>
}
else
{
@* One element, since a locked option places it next to its lock icon: *@
<div>
2026-08-11 20:14:21 +02:00
<MudTextField
T="string"
Text="@this.Text()"
TextChanged="@this.InternalUpdate"
Disabled="@this.IsDisabled"
Adornment="@this.IconAdornment"
2026-08-11 20:14:21 +02:00
AdornmentIcon="@this.Icon"
AdornmentColor="@this.IconColor"
UserAttributes="@SPELLCHECK_ATTRIBUTES"
Lines="@this.NumLines"
AutoGrow="@this.AutoGrow"
MaxLines="@this.GetMaxLines"
Immediate="@true"
Validation="@this.Validation"
Underline="false"
/>
<RestoreDefaultButton Text="@this.ResetButtonText" Disabled="@this.IsDisabled" OnClick="@this.ResetTextAsync"/>
</div>
2026-08-11 20:14:21 +02:00
}