2025-08-09 17:29:43 +00:00
|
|
|
@inherits ConfigurationBaseCore
|
2024-07-28 09:20:00 +00:00
|
|
|
|
2026-08-11 11:43:47 +00:00
|
|
|
@if (this.ResetValue is null)
|
|
|
|
|
{
|
|
|
|
|
<MudTextField
|
|
|
|
|
T="string"
|
|
|
|
|
Text="@this.Text()"
|
|
|
|
|
TextChanged="@this.InternalUpdate"
|
|
|
|
|
Disabled="@this.IsDisabled"
|
|
|
|
|
Adornment="Adornment.Start"
|
|
|
|
|
AdornmentIcon="@this.Icon"
|
|
|
|
|
AdornmentColor="@this.IconColor"
|
|
|
|
|
UserAttributes="@SPELLCHECK_ATTRIBUTES"
|
|
|
|
|
Lines="@this.NumLines"
|
|
|
|
|
AutoGrow="@this.AutoGrow"
|
|
|
|
|
MaxLines="@this.GetMaxLines"
|
|
|
|
|
Immediate="@true"
|
|
|
|
|
Underline="false"
|
|
|
|
|
/>
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
<MudStack Row="true" AlignItems="AlignItems.Center" Spacing="2">
|
|
|
|
|
<MudTextField
|
|
|
|
|
T="string"
|
|
|
|
|
Text="@this.Text()"
|
|
|
|
|
TextChanged="@this.InternalUpdate"
|
|
|
|
|
Disabled="@this.IsDisabled"
|
|
|
|
|
Adornment="Adornment.Start"
|
|
|
|
|
AdornmentIcon="@this.Icon"
|
|
|
|
|
AdornmentColor="@this.IconColor"
|
|
|
|
|
UserAttributes="@SPELLCHECK_ATTRIBUTES"
|
|
|
|
|
Lines="@this.NumLines"
|
|
|
|
|
AutoGrow="@this.AutoGrow"
|
|
|
|
|
MaxLines="@this.GetMaxLines"
|
|
|
|
|
Immediate="@true"
|
|
|
|
|
Underline="false"
|
|
|
|
|
Class="flex-grow-1"
|
|
|
|
|
/>
|
|
|
|
|
<MudButton Variant="Variant.Outlined" StartIcon="@Icons.Material.Filled.Restore" Disabled="@this.IsDisabled" OnClick="@this.ResetTextAsync" Class="mb-1">
|
|
|
|
|
@this.ResetButtonText
|
|
|
|
|
</MudButton>
|
|
|
|
|
</MudStack>
|
|
|
|
|
}
|