Skip to content

InputNumber

Input numerical values with a customizable range.

Basic usage

Bind a variable to v-model in <er-input-number> element and you are set.

Disabled

Use disabled attribute to determine whether InputNumber is disabled. It accepts a Boolean value.

Steps

Allows you use step attribute to define incremental steps.

Sizes

Use attribute size to set additional sizes with large, small, default size is default.

API

Attributes

NameDescriptionTypeDefault
v-modelbinding valuenumber
minthe minimum allowed valuenumber-Infinity
maxthe maximum allowed valuenumberInfinity
stepincremental stepnumber1
sizesize of the component'large' | 'default' | 'small'default
disabledwhether the component is disabledbooleanfalse

Events

NameDescriptionParameters
changetriggers when the value changesvalue: number, oldValue: number
blurtriggers when Input blursevent: FocusEvent
focustriggers when Input focusesevent: FocusEvent

Exposes

NameDescriptionParameters
focusget focus the input component
blurremove focus the input component

Released under the MIT License.