Class MBSlider
A Material Theme single-thumb slider.
public class MBSlider : InputComponent<decimal>, IComponent, IHandleEvent, IHandleAfterRender, IDisposable
- Inheritance
-
MBSlider
- Implements
- Inherited Members
Constructors
MBSlider()
public MBSlider()
Properties
AriaLabel
Value for the "aria-label" tag.
[Parameter]
public string AriaLabel { get; set; }
Property Value
ContinuousInputDelay
For continuous input sets the debounce/throttle delay in milliseconds.
[Parameter]
public uint ContinuousInputDelay { get; set; }
Property Value
DecimalPlaces
Number of decimal places for rounding and displaying values.
[Parameter]
public uint DecimalPlaces { get; set; }
Property Value
EventType
Specifies how slider events are emitted, see MBInputEventType.
[Parameter]
public MBInputEventType EventType { get; set; }
Property Value
NumSteps
The number of steps for a discrete slider. Note that ten steps will yield eleven thumb positions/tickmarks.
[Parameter]
public int NumSteps { get; set; }
Property Value
SliderType
The type of slider - defaults to Continuous.
[Parameter]
public MBSliderType SliderType { get; set; }
Property Value
ValueMax
The maximum slider value.
[Parameter]
public decimal ValueMax { get; set; }
Property Value
ValueMin
The minimum slider value.
[Parameter]
public decimal ValueMin { get; set; }
Property Value
Methods
BuildRenderTree(RenderTreeBuilder)
Renders the component to the supplied RenderTreeBuilder.
protected override void BuildRenderTree(RenderTreeBuilder __builder)
Parameters
__builder
RenderTreeBuilder
Dispose(bool)
protected override void Dispose(bool disposing)
Parameters
disposing
bool
NotifyChanged(decimal)
For Material Theme to notify of slider value changes via JS Interop.
[JSInvokable]
public void NotifyChanged(decimal value)
Parameters
value
decimal
OnInitializedAsync()
protected override Task OnInitializedAsync()