top

SFARROWBUTTON

** This class will not be supported in 2015.

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


This is the A class for ArrowButton UI.

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

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


Methods

blur

Description
This function removes focus from current arrow button.
Parameters
none
Return■Void
Emulator SupportN
SDK ConstraintNone
Example
$('#arrowbutton1').sfArrowButton('blur');

down

Description
This function changes the inner text of current arrow button when user press down arrow button.
Parameters
none
Return■Void
Emulator SupportN
SDK ConstraintNone
Example
$("#arrowbutton"+this.iArrowBtn).sfArrowButton('down');

focus

Description
This function sets focus on the arrow button.
Parameters
none
Return■Void
Emulator SupportN
SDK ConstraintNone
Example
$('#arrowbutton'+(this.iArrowBtn==0?0:1)).sfArrowButton('focus');

getText

Description
This function gets inner text of arrow button.
Parameters
none
Return■String
  - Text in the button
Emulator SupportN
SDK ConstraintNone
Example
var txt = $('#btn1').sfArrowButton('getText');

left

Description
This function changes the inner text of current arrow button when user press left arrow button.
Parameters
none
Return■Void
Emulator SupportN
SDK ConstraintNone
Example
$('#btn1').sfArrowButton('left');
Description
This function changes the inner text of current arrow button when user press right arrow button.
Parameters
none
Return■Void
Emulator SupportN
SDK ConstraintNone
Example
$('#btn1').sfArrowButton('right');

setText

Description
This function sets inner text of arrow button.
Parameters
■text
  - String
  - Text to set in the button.
Return■Void
Emulator SupportN
SDK ConstraintNone
Example
$('#btn1').sfArrowButton('setText', 'Button1');

up

Description
This function changes the inner text of current arrow button when user press up arrow button.
Parameters
none
Return■Void
Emulator SupportN
SDK ConstraintNone
Example
$("#arrowbutton"+this.iArrowBtn).sfArrowButton('up');