jsbeans.IntSpinner
(
object
,
[options]
)
- Parameters:
-
object <DOM | String>
-
[options] <JSON>
arrowColor: <String>, // the color of arrows min: <Integer>, // the minimum value allowed, default jsbeans.IntSpinner.MIN_VALUE max: <Integer>, // the maximum value allowed, default jsbeans.IntSpinner.MAX_VALUE step: <Integer>, // amount of increment/decrement, default 1 roll: <boolean>, // if one of bound is reached, it starts again, default true inputClassName: <String>, // the input style class arrowUpClassName: <String>, // the up arrow style class arrowDownClassName: <String>, // the down arrow style class readonly: <boolean>, // if the input can be edit by user, default true (not editable) label: <String>, // a string inside a label tag. Optional startsWith: <Integer>, // the starting number, default 1 onBeforeClick: <Function>, // function fired on both arrows just before value's update, it may be used to store previous value. It takes the input and the event fired as arguments. onClick: <Function>, // function fired onclick on both arrows. It takes the input and the event fired as arguments. onMouseOver: <Function>, // function fired on mouseover the input, may be used to store previous value. It takes the input and the event fired as arguments. onMouseOut: <Function> // function fired onmouseout the input, may be used for AJAX calls or for validation. It takes the input and the event fired as arguments.