Checkboxradio Widgetversion added: 1.0
Description: Creates a checkboxradio widget
The jQuery UI checkboxradio widget is bundled in jQuery Mobile with some changes. Thus, its API documentation fully describes its functionality.
Options
enhanced
false
This option is also exposed as a data attribute: data-enhanced="true"
.
Initialize the checkboxradio with the enhanced
option specified:
1
2
3
|
|
Get or set the enhanced
option, after initialization:
1
2
3
4
5
|
|
iconpos
"left"
This option is also exposed as a data attribute: data-iconpos="right"
.
Initialize the checkboxradio with the iconpos
option specified:
1
2
3
|
|
Get or set the iconpos
option, after initialization:
1
2
3
4
5
|
|
initSelector
See below
The default initSelector
for the checkboxradio widget is:
1
|
|
Note: This option is deprecated in 1.4.0 and will be removed in 1.5.0.
As of jQuery Mobile 1.4.0, the initSelector
is no longer a widget option. Instead, it is declared directly on the widget prototype. Thus, you may specify a custom value by handling the mobileinit
event and overwriting the initSelector
on the prototype:
1
2
3
|
|
Note: Remember to attach the mobileinit
handler after you have loaded jQuery, but before you load jQuery Mobile, because the event is triggered as part of jQuery Mobile's loading process.
The value of this option is a jQuery selector string. The framework selects elements based on the value of this option and instantiates checkboxradio widgets on each of the resulting list of elements.
(version deprecated: 1.4.0)mini
null (false)
true
, this will display a more compact version of the checkboxradio that uses less vertical height by applying the ui-mini
class to the outermost element of the checkboxradio widget.
Note: mini
option is deprecated in 1.5 and will be removed in 1.6
This option is also exposed as a data attribute: data-mini="true"
.
wrapperClass
null
div
around the native input
element generated by the framework. This option allows you to specify one or more space-separated class names to be added to the wrapper div
element by the framework.
This option is also exposed as a data attribute: data-wrapper-class="custom-class"
.
Note: checkboxradio
option is deprecated in 1.5 and will be removed in 1.6
Initialize the checkboxradio with the wrapperClass
option specified:
1
2
3
|
|
Get or set the wrapperClass
option, after initialization:
1
2
3
4
5
|
|