SFCHECKBOX
** This class will not be supported in 2015.
All functionalities of sfCheckBox class are more improved, integrating with CAPH. Therefore sfCheckBox class is not supported since 2015 Smart TV. To use functions of sfCheckBox class, refer to here.
This is the class for checkbox UI.
Add the following line for sfCheckBox class into a html file your own : <script type="text/javascript" src="$MANAGER_WIDGET/Common/af/2.0.0/loader.js"></script> |
You can declare sfCheckBox class like this : ex) $('#div ID').sfCheckBox('method Name', parm1, parm2); |
Methods
blur | ||
Description | ||
This function removes the focus from the element. | ||
Parameters | none | |
Return | ■Object - jQuery object | |
Emulator Support | N | |
SDK Constraint | None | |
Example | ||
//Remove the focus from the element. $('#checkbox').sfCheckBox('blur'); |
check | ||
Description | ||
This function checks the element. | ||
Parameters | none | |
Return | ■Object - jQuery object | |
Emulator Support | N | |
SDK Constraint | None | |
Example | ||
//Check element $('#checkbox').sfCheckBox('check'); |
focus | ||
Description | ||
This function sets the focus on the element. | ||
Parameters | none | |
Return | ■Object - jQuery object | |
Emulator Support | N | |
SDK Constraint | None | |
Example | ||
//Sets focus on the element $('#checkbox').sfCheckBox('focus'); |
getChecked | ||
Description | ||
This function returns if the checkbox is checked or not. | ||
Parameters | none | |
Return | ■Boolean - true : checked - false : unchecked. | |
Emulator Support | N | |
SDK Constraint | None | |
Example | ||
//This example getting if it is checked. var bChecked = $('#checkbox').sfCheckBox('getChecked'); |
uncheck | ||
Description | ||
This function unchecks the element. | ||
Parameters | none | |
Return | ■Object - jQuery object | |
Emulator Support | N | |
SDK Constraint | None | |
Example | ||
//Uncheck the element $('#checkbox').sfCheckBox('uncheck'); |