Skip to content
IzzyBlazor

Enter all results ↑ ↓ move Esc close

RangeSlider

Since 0.1.0-alpha.22
Lets the user pick a span of numbers with two thumbs on one track.

IzzyBlazor.RangeSlider<TNumber> in the IzzyBlazor.Core package, generated from the 0.1.0-alpha.31 assembly and its doc comments.

Properties (15)

Mindouble? = 0Added in 0.1.0-alpha.22

The lowest value either end can take. Defaults to 0.

Maxdouble? = 100Added in 0.1.0-alpha.22

The highest value either end can take. Defaults to 100.

Stepdouble? = 1Added in 0.1.0-alpha.22

The step between values. Defaults to 1.

ValueTooltipSliderTooltip = SliderTooltip.NoneAdded in 0.1.0-alpha.22

Shows 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 = falseAdded in 0.1.0-alpha.22

Labels the ends of the track with Min and Max, as ValueFormat writes them.

MarksIReadOnlyList<SliderMark>?Added in 0.1.0-alpha.22

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 = falseAdded in 0.1.0-alpha.22

Marks every step with a dot. For scales with few steps.

ValueFormatstring = "{0}"Added in 0.1.0-alpha.22

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?Added in 0.1.0-alpha.22

The lower thumb's name, in place of "Minimum".

EndTextstring?Added in 0.1.0-alpha.22

The upper thumb's name, in place of "Maximum".

OrientationOrientation = Orientation.HorizontalAdded in 0.1.0-alpha.22

Orientation.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)Added in 0.1.0-alpha.22

The track's length when Orientation is vertical. Defaults to 10rem.

Livebool = falseAdded in 0.1.0-alpha.22

On 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>?Added in 0.1.0-alpha.22

The value, bound with @bind-Value.

DisplayNamestring?Added in 0.1.0-alpha.22

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

struct

A width, height or flex basis: a size token, a keyword, or a CSS length built with a factory such as Rem.

Length members
MemberDescription
Sm

640px (matches the sm breakpoint).

Md

768px (matches the md breakpoint).

Lg

1024px (matches the lg breakpoint).

Xl

1280px (matches the xl breakpoint).

Prose

A comfortable reading width, 68 characters.

Full

100% of the containing block.

Auto

auto.

FitContent

fit-content: as wide as the content, up to the available space.

MinContent

min-content.

MaxContent

max-content.

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 calc(100% - 2rem). Checked for unsafe characters.

Css string

The CSS value this length renders as.

NumberRange

record

Two 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.

NumberRange members
MemberDescription
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

enum

Whether items run across or down.

Orientation values
ValueDescription
Vertical

Top to bottom.

Horizontal

Side by side, wrapping when space runs out.

SliderMark

record

A point marked on a slider's track, with a label under it.

SliderMark members
MemberDescription
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

enum

When a slider shows its value in a tooltip over the thumb.

SliderTooltip values
ValueDescription
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.

Connection lost

Rejoining the server…