jsbeans

jsbeans  1.0.0

jsbeans > jsbeans > jsbeans.IntSpinner
Search:
 
Filters

Class jsbeans.IntSpinner

IntSpinner is an UI (User Interface) element representing an input that allows only Integers and let the user go up and down by a defined step.

Constructor

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.

Methods

dispose

void dispose ( )
Renders the UI element.
Returns: void

Configuration Attributes

jsbeans.IntSpinner.MAX_VALUE - static readonly Integer

Default Value: 999999999999999

jsbeans.IntSpinner.MIN_VALUE - static readonly Integer

Default Value: -999999999999999


Copyright © 2016 Francesco Mele. All rights reserved.