Name | Type | Default | |||||
---|---|---|---|---|---|---|---|
disabled | Boolean | false | |||||
Sets or gets whether the widget is disabled. Code examples
Set the $('#jqxMaskedInput').jqxMaskedInput({ disabled: true});
Get the
Try it: disabled is set to true
|
|||||||
height | Number/String | null | |||||
Sets or gets height of the masked input in pixels. Code examples
Set the $('#jqxMaskedInput').jqxMaskedInput({ height: '25px'});
Get the
Try it: height is set to '25px'
|
|||||||
mask | String | '#####' | |||||
Sets or gets the masked input's mask. Mask characters:
Code examples
Set the
Get the
Try it: mask is set to '###-##-####'
|
|||||||
promptChar | String | "_" | |||||
Sets or gets the prompt char displayed when an editable char is empty. Code examples
Set the $('#jqxMaskedInput').jqxMaskedInput({ promptChar: "." });
Get the
Try it: promptChar is set to "#"
|
|||||||
readOnly | Boolean | false | |||||
Sets or gets the readOnly state of the input. Code examples
Set the $('#jqxMaskedInput').jqxMaskedInput({ readOnly: true });
Get the
Try it: readOnly is set to true
|
|||||||
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
|
|||||||
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'
|
|||||||
textAlign | String | left | |||||
Sets or gets the text alignment. Possible Values:
Code examples
Initialize a MaskedInput with the $('#jqxMaskedInput').jqxMaskedInput({ textAlign: "right"});
Get the
Try it: textAlign is set to 'right'
|
|||||||
value | String | null | |||||
Sets or gets the masked input's value. Code examples
Set the
Code examples
Get the
Try it: value is set to 300
|
|||||||
width | Number/String | null | |||||
Sets or gets width of the masked input in pixels. Only positive values have effect. Code examples
Set the $('#jqxMaskedInput').jqxMaskedInput({ width: '250px'});
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
|
|||||||
valueChanged | Event | ||||||
This event is triggered when the value is changed. Code examples
Bind to the
|
|||||||
Methods |
|||||||
clear | Method | ||||||
Clears the value.
None Code examples
Invoke the
Try it: clears the jqxMaskedInput
|
|||||||
destroy | Method | ||||||
Destroys the widget.
None Code examples
Invoke the
Try it: destroys the jqxMaskedInput
|
|||||||
focus | Method | ||||||
Focuses the widget.
None Code examples
Invoke the
Try it: focuses the jqxMaskedInput
|
|||||||
val | Method | ||||||
Sets or gets the value.
String Code examplesGet the value using the val method.
// Get the value using jQuery's val.
Set the value using the val method.
// Set the value using jQuery's val.
|