top

SFHSCROLL

** This class will not be supported in 2015.

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


This is the class for HScroll UI components.

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

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


Methods

move

Description
This function moves scroll to the requested index.
Parameters
■pageIndex 
  - Number
  - Page number to go to
Return■Object
  - jQuery object
Emulator SupportN
SDK ConstraintNone
Example
//Move scroll to requested index.

$('#list').sfHScroll('move', 3);

next

Description
This function moves the scroll to the next page. If currentPage is set to last page, the next function has no effect.
Parameters
none
Return■Object
  - jQuery object
Emulator SupportN
SDK ConstraintNone
Example
//Move scroll to next page.
 
$('#list').sfHScroll('move', 3);

prev

Description
This function moves the scroll to the previous page. If the currentPage option is set to first page(0), the prev function has no effect.
Parameters
none
Return■Object
  - jQuery object
Emulator SupportN
SDK ConstraintNone
Example
//Move scroll to previous page.

$('#list').sfHScroll('prev');

hide

Description
This function hides the HScroll.
Parameters
none
Return■Void
Emulator SupportN
SDK ConstraintNone
Example
$('#scroll1').sfHScroll('hide');

show

Description
This function shows the HScroll.
Parameters
none
Return■Void
Emulator SupportN
SDK ConstraintNone
Example
$('#scroll3').sfHScroll('show');