mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-11-04 13:47:21 +00:00
Co-authored-by: Thorsten Sommer <SommerEngineering@users.noreply.github.com>
44 lines
1.3 KiB
Plaintext
44 lines
1.3 KiB
Plaintext
@inherits ConfigurationBaseCore
|
|
|
|
@if (this.ResetValue is null)
|
|
{
|
|
<MudTextField
|
|
T="string"
|
|
Text="@this.Text()"
|
|
TextChanged="@this.InternalUpdate"
|
|
Disabled="@this.IsDisabled"
|
|
Adornment="@this.IconAdornment"
|
|
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>
|
|
<MudTextField
|
|
T="string"
|
|
Text="@this.Text()"
|
|
TextChanged="@this.InternalUpdate"
|
|
Disabled="@this.IsDisabled"
|
|
Adornment="@this.IconAdornment"
|
|
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>
|
|
} |