RangeSlider
Since 0.1.0-alpha.22IzzyBlazor.RangeSlider<TNumber> in the IzzyBlazor.Core package, generated from the 0.1.0-alpha.31 assembly
and its doc comments.
Properties (15)
Mindouble? = 0The lowest value either end can take. Defaults to 0.
Maxdouble? = 100The highest value either end can take. Defaults to 100.
Stepdouble? = 1The step between values. Defaults to 1.
ValueTooltipSliderTooltip = SliderTooltip.NoneShows each thumb's value in a tooltip over it: SliderTooltip.Active while it's hovered, focused or held, SliderTooltip.Always all the time. Off by default.
ShowEndsbool = falseLabels the ends of the track with Min and Max, as ValueFormat writes them.
MarksIReadOnlyList<SliderMark>?Points to mark on the track, each a dot with an optional label under it, such as new(37, "37°C"). The thumbs still move by Step.
ShowStepMarksbool = falseMarks every step with a dot. For scales with few steps.
ValueFormatstring = "{0}"How each end reads, with {0} for the number: "{0}%", "${0}". Used for the tooltips, the ends' labels and what screen readers announce. Defaults to the number alone.
StartTextstring?The lower thumb's name, in place of "Minimum".
EndTextstring?The upper thumb's name, in place of "Maximum".
OrientationOrientation = Orientation.HorizontalOrientation.Horizontal, the default, runs from the lowest value at the start to the highest at the end; Orientation.Vertical stands upright, the lowest at the bottom, with the values shown under it.
HeightLength? (computed)The track's length when Orientation is vertical. Defaults to 10rem.
Livebool = falseOn interactive pages, update the bound value while dragging rather than on release. Each move is a round trip, so use it only when something on the page follows the value live.
@bind-ValueNumberRange<TNumber>?The value, bound with @bind-Value.
DisplayNamestring?The field's name in validation messages from the input itself, such as a value that can't be parsed.
Events (0)
No events.
Types (5)
Length
structA width, height or flex basis: a size token, a keyword, or a CSS length built with a factory such as Rem.
| Member | Description |
|---|---|
Sm | 640px (matches the |
Md | 768px (matches the |
Lg | 1024px (matches the |
Xl | 1280px (matches the |
Prose | A comfortable reading width, 68 characters. |
Full | 100% of the containing block. |
Auto |
|
FitContent |
|
MinContent |
|
MaxContent |
|
Px(double value) | Pixels. |
Rem(double value) | Root ems (16px each by default). |
Percent(double value) | Percent of the containing block. |
Ch(double value) | Character widths, for text measures. |
Vw(double value) | Percent of the viewport width. |
Dvh(double value) | Percent of the dynamic viewport height (accounts for mobile browser bars). |
Of(string css) | Any CSS length, such as |
Css string | The CSS value this length renders as. |
NumberRange
recordTwo numbers, both included, such as a price filter's lowest and highest. A RangeSlider<T> binds to one. The properties are settable for form binding on a static post.
| Member | Description |
|---|---|
Start T | The lowest value. |
End T | The highest value, included. |
Contains(T value) | Whether this value is in the range, both ends included. |
Orientation
enumWhether items run across or down.
| Value | Description |
|---|---|
Vertical | Top to bottom. |
Horizontal | Side by side, wrapping when space runs out. |
SliderMark
recordA point marked on a slider's track, with a label under it.
| Member | Description |
|---|---|
Value double | Where on the scale the mark goes. |
Label string? | The text under the mark, such as "37°C", or null for a dot alone. |
SliderTooltip
enumWhen a slider shows its value in a tooltip over the thumb.
| Value | Description |
|---|---|
None | Never: the thumb's position says it. |
Active | While the thumb is hovered, focused from the keyboard or held. |
Always | All the time, over each thumb. |