new PfTouchspin()
Called when an instance of the element is created
Properties:
Name | Type | Description |
---|---|---|
min |
number | the minimum value |
max |
number | the maximum value |
step |
number | Increment/Decrement in value on up/down |
decimals |
number | decimal points in value |
booster |
boolean | if true, spinner will become faster continousally on holding down the button |
boostat |
number | boost at every nth step |
maxboostedstep |
number | maximum step when boosted |
stepinterval |
number | refresh reate of spinner in millisecond |
stepintervaldelay |
number | delay before sppiner starts to spin(millisecond) |
forcestepdivisibility |
string | force the value to be divisible by step value: 'none' | 'round' | 'floor' | 'ceil' |
Methods
-
_bindEvents()
-
-
_boostedStep(value)
-
boost the value
Parameters:
Name Type Description value
number -
_checkValue()
-
check the value before change in value
-
_down()
-
decrement input value
-
_downSpin()
-
Decremental spinner
-
_stepDivisibility(value)
-
force the valur to be divisible by step
Parameters:
Name Type Description value
number -
_stop()
-
Stop the spinner
-
_up()
-
increment input value
-
_upSpin()
-
Incremental spinner
-
attributeChangedCallback(attrName, oldValue, newValue)
-
Called when element's attribute value has changed
Parameters:
Name Type Description attrName
string The attribute name that has changed
oldValue
string The old attribute value
newValue
string The new attribute value