top

SFTOGGLEBUTTON

** This class will not be supported in 2015.

   All functionalities of sfToggleButton class are more improved, integrating with CAPH. Therefore sfToggleButton class is not supported since 2015 Smart TV. To use functions of sfToggleButton class, refer to here.


This is the class for ToggleButton UI components.

Add the following line for sfToggleButton 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 sfToggleButton class like this :

  ex) $('#div ID').sfToggleButton('method Name', parm1, parm2);


Methods

blur

Description
This function removes focus state from component.
Parameters
none
Return■Object
  - jQuery object
Emulator SupportN
SDK ConstraintNone
Example
$('#button3').sfToggleButton('blur');

focus

Description
This function sets focus on ToggleButton.
Parameters
none
Return■Object
  - jQuery object
Emulator SupportN
SDK ConstraintNone
Example
$('#button3').sfToggleButton('focus');

isOn

Description
This function returns the toggle button is checked or not.
Parameters
none
Return■Boolean
  - true : the toggle button is on 
  - false : the toggle button is off
Emulator SupportN
SDK ConstraintNone
Example
var selection = $('#button3').sfToggleButton('isOn');

toggle

Description
This function toggles the item.
Parameters
none
Return■Void
Emulator SupportN
SDK ConstraintNone
Example
$('#button3').sfToggleButton('toggle');