|
change
|
boolean
|
|
Sets or gets the change function. It is called when a value is changed and the changed item is passed as parameter. The item argument has the following properties: enabled: boolean, encode: boolean, label: string, value: string, cssClass: string and checked: boolean.
Code example:
$('#myCheckBoxGroup').jqxCheckBoxGroup({change: (item) => { }});
|
disabled
|
boolean
|
false
|
Sets or gets whether the CheckBoxGroup is disabled.
Code example:
disabled is set to true
$('#myCheckBoxGroup').jqxCheckBoxGroup({disabled: true});
|
items
|
[]
|
[]
|
Sets or gets the items. Each item could be a string or an object. The object has the following properties: enabled: boolean, encode: boolean, label: string, value: string, cssClass: string and checked: boolean.
Code example:
Sets or gets the items
$('#myCheckBoxGroup').jqxCheckBoxGroup({items: [{label: 'Item 1', value: '1'}, {label: 'Item 2', value: '2'}]});
|
value
|
[]
|
[]
|
Sets or gets the value array. This property determines the checked item(s).
Code example:
Sets or gets the value
$('#myCheckBoxGroup').jqxCheckBoxGroup({value: ['1']});
|
layout
|
string
|
vertical
|
Sets or gets the items layout. It can be 'horizontal' or 'vertical'.
Code example:
Sets or gets the layout property.
$('#myCheckBoxGroup').jqxCheckBoxGroup({layout: horizontal});
|
labelPosition
|
string
|
after
|
Sets or gets the items label position. It can be 'before' or 'after'.
Code example:
Sets or gets the labelPosition property.
$('#myCheckBoxGroup').jqxCheckBoxGroup({labelPosition: before});
|
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:
rtl is set to true
$('#jqxCheckBoxGroup').jqxCheckBoxGroup({rtl : true});
|
theme
|
string
|
''
|
Sets the widget's theme.
Code example:
theme is set to 'material'
$('#myCheckBoxGroup').jqxCheckBoxGroup({theme: material});
|
|
|
getValue
|
Method
|
|
Gets the value.
Parameters |
Name |
Type |
Description |
None |
null |
|
Return Value
[]
|
getValueAt
|
Method
|
|
Gets an item value at index.
Parameters |
Name |
Type |
Description |
index |
number |
Item's index |
Return Value
string
|
enableAt
|
Method
|
|
Enables an item at index.
Parameters |
Name |
Type |
Description |
index |
number |
Item's index |
Return Value
None
|
disableAt
|
Method
|
|
Disables an item at index.
Parameters |
Name |
Type |
Description |
index |
number |
Item's index |
Return Value
None
|
checkAt
|
Method
|
|
Checks an item at index.
Parameters |
Name |
Type |
Description |
index |
number |
Item's index |
Return Value
None
|
uncheckAt
|
Method
|
|
Unchecks an item at index.
Parameters |
Name |
Type |
Description |
index |
number |
Item's index |
Return Value
None
|
uncheckAll
|
Method
|
|
Unchecks all items.
Parameters |
Name |
Type |
Description |
None |
null |
|
Return Value
None
|
checkAll
|
Method
|
|
Checks all items.
Parameters |
Name |
Type |
Description |
None |
null |
|
Return Value
None
|
checkValue
|
Method
|
|
Checks an item by value.
Parameters |
Name |
Type |
Description |
value |
string |
Item's value |
Return Value
None
|
uncheckValue
|
Method
|
|
Unchecks an item by value.
Parameters |
Name |
Type |
Description |
value |
string |
Item's value |
Return Value
None
|
disable
|
Method
|
|
Disables the CheckBoxGroup.
Parameters |
Name |
Type |
Description |
None |
null |
|
Return Value
None
|
destroy
|
Method
|
|
Destroys the widget.
Code examples
Invoke the destroy thod.
$('#jqxCheckBox').jqxCheckBoxGroup('destroy');
Parameters |
Name |
Type |
Description |
None |
null |
|
Return Value
None
|
enable
|
Method
|
|
Enables the CheckBoxGroup.
Parameters |
Name |
Type |
Description |
None |
null |
|
Return Value
None
|
render
|
Method
|
|
Renders the widget.
Code examples
Invoke the render method.
$('#jqxCheckBox').jqxCheckBoxGroup('render');
Parameters |
Name |
Type |
Description |
None |
null |
|
Return Value
None
|
val
|
Method
|
|
Sets or gets the value.
Parameters |
Name |
Type |
Description |
value |
[] |
|
Return Value
[]
|