top

SFTOOLTIP

** This class will not be supported in 2015.

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


This is the class for Tooltip UI components.

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

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


Methods

getOrientation

Description
This function gets arrow orientation of the tooltip.
Parameters
none
Return■String
  - orientation of the arrow.
   * value : ‘up’, ‘down’, ‘left’, ‘right’
Emulator SupportN
SDK ConstraintNone
Example
$("#tooltip_desc").html("orientation: " + $("#tooltip0").sfTooltip('getOrientation'));

setOrientation

Description
This function sets arrow orientation of the tooltip.
Parameters
■orientation 
  - String
  - Direction of the tooltip’s arrow is pointing. 
   * value : ‘up’, ‘down’, ‘left’, ‘right’
Return■Object
  - jQuery object
Emulator SupportN
SDK ConstraintNone
Example
$('#tooltip1').sfTooltip('setOrientation', 'up');

setText

Description
This function sets text of the tooltip.
Parameters
■text
  - String
  - Text of tooltip.
Return■Object
  - jQuery object
Emulator SupportN
SDK ConstraintNone
Example
$('#tooltip1').sfTooltip('setText', 'TOOLTIP TEXT');

setTitle

Description
This function sets title text of the tooltip.
Parameters
■title 
  - String
  - Title text of tooltip.
Return■Object
  - jQuery object
Emulator SupportN
SDK ConstraintNone
Example
$('#tooltip1').sfTooltip('setTitle', 'TOOLTIP TITLE TEXT');