Spinner is an input component to provide a numerical input.
-Two-way value binding is defined using standard v-model directive.
-Boundaries are specified with min and max attributes.
-Step factor is 1 by default and can be customized with step option.
-Any property such as name and placeholder are passed to the underlying input element. Following are the additional properties to configure the component.
-Name | -Type | -Default | -Description | -
---|---|---|---|
value | -number | -null | -Value of the component. | -
step | -number | -1 | -Step factor to increment/decrement the value. | -
min | -number | -null | -Mininum boundary value. | -
max | -number | -null | -Maximum boundary value. | -
ariaLabelledBy | -string | -null | -Establishes relationships between the component and label(s) where its value should be one or more element IDs. | -
Any valid event such as focus, blur and input are passed to the underlying input element.
- -Following is the list of structural style classes, for theming classes visit
Name | -Element | -
---|---|
p-spinner | -Container element | -
p-spinner-up | -Up icon. | -
p-spinner-down | -Down icon. | -
p-spinner-input | -Input element | -
None.
-