Name
|
Type
|
Default
|
animationShowDelay
|
Number
|
250
|
Sets or gets the delay of the fade animation when the Radio Button is going to be checked.
Code examples
Set the animationShowDelay property.
$('#jqxRadioButton').jqxRadioButton({ animationShowDelay: 200 });
Get the animationShowDelay property.
var animationShowDelay = $('#jqxRadioButton').jqxRadioButton('animationShowDelay');
|
animationHideDelay
|
Number
|
300
|
Sets or gets the delay of the fade animation when the Radio Button is going to be unchecked.
Code examples
Set the animationHideDelay property.
$('#jqxRadioButton').jqxRadioButton({ animationHideDelay: 200 });
Get the animationHideDelay property.
var animationHideDelay = $('#jqxRadioButton').jqxRadioButton('animationHideDelay');
|
boxSize
|
String
|
"13px"
|
Sets or gets the Radio Button's size.
Code examples
Set the boxSize property.
$('#jqxRadioButton').jqxRadioButton({ boxSize:"15px" });
Get the boxSize property.
var boxSize = $('#jqxRadioButton').jqxRadioButton('boxSize');
|
checked
|
Boolean
|
false
|
Sets or gets whether the radio button is checked.
Code examples
Set the checked property.
$('#jqxRadioButton').jqxRadioButton({ checked:true });
Get the checked property.
var checked = $('#jqxRadioButton').jqxRadioButton('checked');
|
disabled
|
Boolean
|
false
|
Sets or gets whether the Radio Button is disabled.
Code examples
Set the disabled property.
$('#jqxRadioButton').jqxRadioButton({ disabled:true });
Get the disabled property.
var disabled = $('#jqxRadioButton').jqxRadioButton('disabled');
|
enableContainerClick
|
Boolean
|
true
|
Sets or gets whether the clicks on the container are handled as clicks on the rounded button.
Code examples
Set the enableContainerClick property.
$('#jqxRadioButton').jqxRadioButton({enableContainerClick :true });
Get the enableContainerClick property.
var enableContainerClick = $('#jqxRadioButton').jqxRadioButton('enableContainerClick');
|
groupName
|
String
|
""
|
Sets or gets the group name. When this property is set, checking a radio button from the group, will uncheck only the radio buttons from the same group.
Code examples
Set the groupName property.
$('#jqxRadioButton').jqxRadioButton({groupName :"Panel" });
Get the groupName property.
var groupName = $('#jqxRadioButton').jqxRadioButton('groupName');
|
hasThreeStates
|
Boolean
|
false
|
Sets or gets whether the radio button has 3 states - checked, unchecked and indeterminate.
Code examples
Set the hasThreeStates property.
$('#jqxRadioButton').jqxRadioButton({ hasThreeStates:true });
Get the hasThreeStates property.
var hasThreeStates = $('#jqxRadioButton').jqxRadioButton('hasThreeStates');
|
height
|
Number/String
|
null
|
Sets or gets the jqxRadioButton's height.
Code examples
Set the height property.
$('#jqxRadioButton').jqxRadioButton({height:"400px"});
Get the height property.
var height = $('#jqxRadioButton').jqxRadioButton('height');
|
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 rtl property.
$('#jqxRadioButton').jqxRadioButton({rtl : true});
Get the rtl property.
var rtl = $('#jqxRadioButton').jqxRadioButton('rtl');
|
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:
|
width
|
Number/String
|
null
|
Sets or gets the jqxRadioButton's width.
Code examples
Set the width property.
$('#jqxRadioButton').jqxRadioButton({width:"200px"});
Get the width property.
var width = $('#jqxRadioButton').jqxRadioButton('width');
|
|
checked
|
Event
|
|
This event is triggered when the Radio Button is checked.
Code examples
Bind to the checked event by type: jqxRadioButton.
$('#jqxRadioButton').on('checked', function (event) { // Some code here. });
|
change
|
Event
|
|
This is triggered when the Radio Button's state changes from one state to another.
Code examples
Bind to the change event by type: jqxRadioButton.
$('#jqxRadioButton').on('change', function (event) { var checked = event.args.checked; var type = event.args.type; // keyboard, mouse or null depending on how the value was changed. });
|
unchecked
|
Event
|
|
This event is triggered when the Radio Button is unchecked.
Code examples
Bind to the unchecked event by type: jqxRadioButton.
$('#jqxRadioButton').on('unchecked', function (event) { // Some code here. });
|
|
check
|
Method
|
|
Checks the radio button.
Parameter |
Type |
Description |
None |
|
|
Return Value
None
Code example
Invoke the check method.
$('#jqxRadioButton').jqxRadioButton('check');
|
disable
|
Method
|
|
Disables the radio button.
Parameter |
Type |
Description |
None |
|
|
Return Value
None
Code example
Invoke the disable method.
$('#jqxRadioButton').jqxRadioButton('disable');
|
destroy
|
Method
|
|
Destroys the widget.
Parameter |
Type |
Description |
None |
|
|
Return Value
None
Code examples
Invoke the destroy thod.
$('#jqxRadioButton').jqxRadioButton('destroy');
|
enable
|
Method
|
|
Enables the radio button.
Parameter |
Type |
Description |
None |
|
|
Return Value
None
Code example
Invoke the enable method.
$('#jqxRadioButton').jqxRadioButton('enable');
|
focus
|
Method
|
|
Focuses the widget.
Parameter |
Type |
Description |
None |
|
|
Return Value
None
Code examples
Invoke the focus method.
$('#jqxRadioButton').jqxRadioButton('focus');
|
render
|
Method
|
|
Renders the widget.
Parameter |
Type |
Description |
None |
|
|
Return Value
None
Code examples
Invoke the render method.
$('#jqxRadioButton').jqxRadioButton('render');
|
uncheck
|
Method
|
|
Unchecks the radio button.
Parameter |
Type |
Description |
None |
|
|
Return Value
None
Code example
Invoke the uncheck method.
$('#jqxRadioButton').jqxRadioButton('uncheck');
|
val
|
Method
|
|
Sets or gets the value.
Parameter |
Type |
Description |
value(optional) |
Boolean |
|
Return Value
Boolean
Code example
Invoke the val method.
// Get the value.
var value = $("#jqxRadioButton").jqxRadioButton('val');
// Get the value using jQuery's val()
var value = $("#jqxRadioButton").val();
// Set value.
$("#jqxRadioButton").jqxRadioButton('val', true);
// Set value using jQuery's val().
$("#jqxRadioButton").val(true);
|