Name | Type | Default | |||||
---|---|---|---|---|---|---|---|
allowNull | Boolean | true | |||||
Determines whether the widget's value could be null. Code example
Set the
Get the
Try it: allowNull is set to false
|
|||||||
decimal | Number | 0 | |||||
Sets or gets the input's number. Code examples
Set the
Get the
Try it: decimal is set to 2
|
|||||||
disabled | Boolean | false | |||||
Determines whether jqxNumberInput is disabled. Code examples
Set the
Get the
Try it: disabled is set to true
|
|||||||
disabled | Boolean | false | |||||
Sets or gets whether the widget is disabled. Code example
Set the
Get the
Try it: disabled is set to true
|
|||||||
decimalDigits | Number | 2 | |||||
Indicates the number of decimal places to use in numeric values. Code examples
Set the $("#jqxNumberInput").jqxNumberInput({ decimalDigits: 3 })
Get the
Try it: decimalDigits is set to 3
|
|||||||
decimalSeparator | Char | '.' | |||||
Sets or gets the char to use as the decimal separator in numeric values. Code examples
Set the $("#jqxNumberInput").jqxNumberInput({ decimalSeparator: "," })
Get the
Try it: decimalSeparator is set to ','
|
|||||||
digits | Number | 8 | |||||
Sets or gets the digits in the input Code examples
Set the $("#jqxNumberInput").jqxNumberInput({ digits: 8})
Get the
Try it: digits is set to 5
|
|||||||
groupSeparator | Char | ',' | |||||
Sets or gets the string that separates groups of digits to the left of the decimal in numeric values. Code examples
Set the $("#jqxNumberInput").jqxNumberInput({ groupSeparator: "." })
Get the
Try it: groupSeparator is set to '.'
|
|||||||
groupSize | Number | 3 | |||||
Sets or gets the number of digits in each group to the left of the decimal in numeric values. Code examples
Set the $("#jqxNumberInput").jqxNumberInput({ groupSize: 5 })
Get the
Try it: groupSize is set to 2
|
|||||||
height | Number/String | null | |||||
Sets or gets the height of the input in pixels. Code examples
Set the
Get the
Try it: height is set to '25px'
|
|||||||
inputMode | String | 'advanced' | |||||
Sets or gets the input's mode. Possible Values:
Code examples
Set the
Get the
Try it: inputMode is set to 'simple'
|
|||||||
min | Number | -99999999 | |||||
Sets or gets the input's minimum value. Code examples
Set the
Get the
Try it: min is set to 2
|
|||||||
max | Number | 99999999 | |||||
Sets or gets the input's maximum value. Code examples
Set the
Get the
Try it: max is set to 50
|
|||||||
negativeSymbol | String | '-' | |||||
Sets or gets the string to use as negative symbol. Code examples
Set the $("#jqxNumberInput").jqxNumberInput({ negativeSymbol: '-'})
Get the
Try it: symbolPosition is set to '-'
|
|||||||
placeHolder | String | "" | |||||
Determines the widget's place holder displayed when the widget's value is null. Code example
Set the
Get the
|
|||||||
promptChar | Char | - | |||||
Sets or gets the prompt char displayed when an editable char is empty. Possible Values:
Code examples
Set the $("#jqxNumberInput").jqxNumberInput({ promptChar: "#" })
Get the
Try it: promptChar is set to '#'
|
|||||||
rtl | Boolean | false | |||||
Sets or gets a value indicating whether widget's elements are aligned to support locales using right-to-left fonts. Code example
Set the
Get the
Try it: rtl is set to true
|
|||||||
readOnly | Boolean | false | |||||
Sets or gets the readOnly state of the input. Code examples
Set the $("#jqxNumberInput").jqxNumberInput({ readOnly: true })
Get the
Try it: readOnly is set to true
|
|||||||
spinMode | String | 'advanced' | |||||
Sets or gets the spin mode. Possible Values:
Code examples
Set the
Get the
Try it: spinMode is set to 'simple'
|
|||||||
spinButtons | Boolean | false | |||||
Shows or hides the spin buttons. Code examples
Set the
Get the
Try it: spinButtons is set to true
|
|||||||
spinButtonsWidth | Number | 18 | |||||
Sets or gets the width of the spin buttons. Code examples
Set the
Get the
Try it: spinButtonsWidth is set to 30
|
|||||||
spinButtonsStep | Number | 1 | |||||
Sets or gets the increase/decrease step. Code examples
Set the
Get the
Try it: spinButtonsStep is set to 10
|
|||||||
symbol | String | '' | |||||
Sets or gets the string to use as currency or percentage symbol. Code examples
Set the $("#jqxNumberInput").jqxNumberInput({ symbol: '$' })
Get the
Try it: symbol is set to '$'
|
|||||||
symbolPosition | String | 'left' | |||||
Sets or gets the position of the symbol in the input. Possible Values:
'right' Code examples
Set the $("#jqxNumberInput").jqxNumberInput({ symbolPosition: 'right'})
Get the
Try it: symbolPosition is set to 'right'
|
|||||||
textAlign | String | 'right' | |||||
Sets or gets the alignment. Code examples
Set the
Get the
Try it: textAlign is set to 'left'
|
|||||||
template | String | 'default' | |||||
Determines the template as an alternative of the default styles. Possible Values:
Code examples
Set the
Get the
Try it: template is set to 'success'
|
|||||||
theme | String | '' | |||||
Sets the widget's theme. jQWidgets uses a pair of css files - jqx.base.css and jqx.[theme name].css. The base stylesheet creates the styles related to the widget's layout like margin, padding, border-width, position. The second css file applies the widget's colors and backgrounds. The jqx.base.css should be included before the second CSS file. In order to set a theme, you need to do the following:
Try it: theme is set to 'energyblue'
|
|||||||
width | Number/String | null | |||||
Sets or gets the width of the input in pixels. Only positive values have effect. Code examples
Set the
Get the
Try it: width is set to '250px'
|
|||||||
Events |
|||||||
change | Event | ||||||
This event is triggered when the value is changed and the control's focus is lost. Code examples
Bind to the
|
|||||||
textchanged | Event | ||||||
This event is triggered when the user entered entered a text. Code examples
Bind to the
|
|||||||
valueChanged | Event | ||||||
This event is triggered after value is changed. Code examples
Bind to the
|
|||||||
Methods |
|||||||
clear | Method | ||||||
Clears the value.
None Code examples
Invoke the
|
|||||||
destroy | Method | ||||||
Destroys the widget.
None Code examples
Invoke the
Try it: destroys the jqxNumberInput.
|
|||||||
focus | Method | ||||||
Focuses the widget.
None Code examples
Invoke the
Try it: focuses the jqxNumberInput.
|
|||||||
getDecimal | Method | ||||||
Gets the value.
Number Code examples
Invoke the
|
|||||||
setDecimal | Method | ||||||
Sets the value.
None Code examples
Invoke the
|
|||||||
val | Method | ||||||
Sets or gets the value.
String Code examples
Get the value using the
// Get the value using jQuery's val.
Set the value using the
// Set the value using jQuery's val.
|