mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-11-23 05:53:48 +00:00
Co-authored-by: Thorsten Sommer <SommerEngineering@users.noreply.github.com>
10 lines
736 B
Plaintext
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> |