top

SFPAGEINDICATOR

** This class will not be supported in 2015.

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


This is the class for PageIndicator UI components.

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

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

       $('#div ID').sfPageIndicator({ Json type });


Methods

getIndex

Description
This function gets current page.
Parameters
none
Return■Number
  - The current index of the page indicator
Emulator SupportN
SDK ConstraintNone
Example
$('#progress1').sfPageIndicator({index: 5, count: 10});
$('#progress1').sfPageIndicator('setIndex', 7).sfPageIndicator('getIndex');  // returns 7

next

Description
This function moves to next page.
Parameters
none
Return■Void
Emulator SupportN
SDK ConstraintNone
Example
$('#progress1').sfPageIndicator({index: 5, count: 10}).sfPageIndicator('next'); // move to next page

prev

Description
This function moves to previous page.
Parameters
none
Return■Void
Emulator SupportN
SDK ConstraintNone
Example
$('#progress1').sfPageIndicator({index: 5, count: 10}).sfPageIndicator('prev'); // move to previous page

setIndex

Description
This function moves page to the index.
Parameters
■index 
  - Number
  - index of page
Return■Object
  - jQuery object
Emulator SupportN
SDK ConstraintNone
Example
$('#progress1').sfPageIndicator({index: 5, count: 10});
$('#progress1').sfPageIndicator('setIndex', 7).sfPageIndicator('getIndex'); // returns 7