Counter
# FxInputNumber Counter
Only allows standard numeric values to be entered, with definable ranges.
# Parameters
| Parameter | Description | Type | Optional Values | Default Value |
|---|---|---|---|---|
| value / v-model | Binding value | number | — | 0 |
| min | Minimum allowed value | number | — | -Infinity |
| max | Maximum allowed value | number | — | Infinity |
| step | Incremental step | number | — | 1 |
| step-strictly | Whether input must be multiples of step | boolean | — | false |
| precision | Precision of value | number | — | — |
| size | Size of counter | string | large, small | — |
| disabled | Whether counter is disabled | boolean | — | false |
| controls | Whether to use control buttons | boolean | — | true |
| controls-position | Position of control buttons | string | right | — |
| name | Native attribute | string | — | — |
| label | Label text associated with input | string | — | — |
| placeholder | Default placeholder for input | string | — | — |
# Events
| Event Name | Description | Callback Parameters |
|---|---|---|
| change | Triggered when binding value changes | currentValue, oldValue |
| blur | Triggered when Input loses focus | (event: Event) |
| focus | Triggered when Input gains focus | (event: Event) |
# Methods
| Method | Description | Parameters |
|---|---|---|
| focus | Focuses the input | - |
| select | Selects text in input | — |
# Basic Usage
Copy
# Disabled State
Copy
# Step
Allows defining incremental/decremental step control
Copy
# Strict Step
Copy
# Precision
Copy
:::tip
The precision value must be a non-negative integer and cannot be less than the decimal places of step.
:::
# Sizes
Additional medium, small, and mini sized numeric input boxes
Copy
# Button Position
Copy