Files
AI-Studio/app/MindWork AI Studio/Components/ConfigurationSlider.razor
T
2026-11-21 14:16:04 +01:00

10 lines
736 B
Plaintext

@* Rider takes this using for unused, but without it, Razor does not recognize the event handler @oninput below, and MudSlider passes it to the DOM as an invalid attribute: *@
@* ReSharper disable once RedundantUsingDirective *@
@using Microsoft.AspNetCore.Components.Web
@typeparam T
@inherits ConfigurationBaseCore
@* The input event bubbles up from the range input inside, also while the value waits for the release: *@
<MudSlider T="@T" Size="Size.Medium" Value="@this.Value()" ValueChanged="@this.OptionChanged" Min="@this.Min" Max="@this.Max" Step="@this.Step" Immediate="@this.Immediate" Disabled="@this.IsDisabled" Class="mb-1" @oninput="@this.ShowDraggedValue">
@(this.draggedValue ?? this.Value()) @this.Unit
</MudSlider>