Skip to content
IzzyBlazor 0.1.0-alpha.17

Enter all results ↑ ↓ move Esc close

NumberField

A number input with stepper buttons.

IzzyBlazor.NumberField<TValue> in the IzzyBlazor.Core package, generated from the 0.1.0-alpha.17 assembly and its doc comments.

Properties (13)

ReadOnlybool = falseAdded in 0.1.0-alpha.13

Makes the field read-only: it can be focused, its steppers are off, and it still posts.

Mindouble? (computed)

The lowest value. Defaults to [Range]'s minimum.

Maxdouble? (computed)

The highest value. Defaults to [Range]'s maximum.

Stepdouble? (computed)

The step between allowed values, such as 0.01 for cents. Defaults to 1 for whole-number types and to any value for decimal types.

Placeholderstring?

Example text shown when empty.

StartIconIconData?

An icon inside the field, before the number.

StartAddonRenderFragment?

Content attached before the control, outside its border. See StartAddon.

EndAddonRenderFragment?

Content attached after the control, outside its border, such as a unit.

StepButtonsStepButtons = StepButtons.Stacked

Increase and decrease buttons, shown once scripts run: stacked at the end (the default), split across both ends, or none. The browser's own spin buttons are hidden while these show; with JavaScript off they show in their place, unless this is StepButtons.None. Arrow keys step either way.

The increase button's accessible name.

The decrease button's accessible name.

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 (1)

StepButtons

enum

Where a NumberField<T> puts its increase and decrease buttons.

StepButtons values
ValueDescription
Stacked

Stacked at the end of the field (the default).

Split

Decrease at the start and increase at the end, full height: easier to tap.

None

No buttons; arrow keys still step.