new Number()
- Source:
Methods
-
addButtonHandlers(el)
-
Adds spinner buttons to the provided element.
Parameters:
Name Type Description el
jQuery - Source:
-
addStyles(el)
-
Adds style markup to the element.
Parameters:
Name Type Description el
jQuery - Source:
-
clearStyled(el)
-
Clears an input from remaining stuff of Greppy number to get a plain input.
Parameters:
Name Type Description el
jQuery - Source:
-
getAddedVal(el) → {Number}
-
Returns the added number of the passed element.
Parameters:
Name Type Description el
jQuery - Source:
Returns:
- Type
- Number
-
getSubtractedVal(el) → {Number}
-
Returns the subtracted number of the passed element.
Parameters:
Name Type Description el
jQuery - Source:
Returns:
- Type
- Number
-
getVal(el) → {Number}
-
Returns the normalized number of the passed element.
Parameters:
Name Type Description el
jQuery - Source:
Returns:
- Type
- Number
-
handleCleanup(el)
-
Decides wether to cleanup the passed element.
Parameters:
Name Type Description el
jQuery - Source:
-
isNumber(el) → {Boolean}
-
Determines wether the passed element is a number-styled input.
Parameters:
Name Type Description el
jQuery - Source:
Returns:
- Type
- Boolean
-
style(el)
-
Styles an input element to be adjustable via buttons.
Parameters:
Name Type Description el
String | jQuery The element(s) to style
- Source:
-
validate(el)
-
Helper function which ensures el fits the requirements.
Parameters:
Name Type Description el
jQuery - Source: