top

SFPROGRESSBAR

** This class will not be supported in 2015.

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


This is the class for ProgressBar UI components.

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

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

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


Methods

getMax

Description
This function getMaxs progressbar.
Parameters
none
Return■Number
  - Maximum value of progressbar
Emulator SupportN
SDK ConstraintNone
Example
$('#progress1').sfProgressBar('setMax', 200);
alert($('#progress1').sfProgressBar('getMax')); // prints 200

getValue

Description
is function returns current value.
Parameters
none
Return■Number
  - Current value of progressbar
Emulator SupportN
SDK ConstraintNone
Example
$('#progress1').sfProgressBar('setValue', 50);
alert($('#progress1').sfProgressBar('getValue')); // prints 50

hide

Description
This function hides progressbar.
Parameters
none
Return■Object
  - jQuery object
Emulator SupportN
SDK ConstraintNone
Example
$('#progress1').sfProgressBar('hide');

next

Description
This function increase value by 1.
Parameters
none
Return■Object
  - jQuery object
Emulator SupportN
SDK ConstraintNone
Example
$('#progress1').sfProgressBar('next');

prev

Description
This function decrease value by 1.
Parameters
none
Return■Object
  - jQuery object
Emulator SupportN
SDK ConstraintNone
Example
$('#progress1').sfProgressBar('prev');

setMax

Description
This function sets maximum value of progressbar
Parameters
■maxValue
  - Number
Return■Object
  - jQuery object
Emulator SupportN
SDK ConstraintNone
Example
$('#progress1').sfProgressBar('setMax', 200);

setValue

Description
This function sets value with entered value
Parameters
■value
  - Number
Return■Object
  - jQuery object
Emulator SupportN
SDK ConstraintNone
Example
$('#progress1').sfProgressBar('setValue', 50);

show

Description
This function shows progressbar
Parameters
none
Return■Object
  - jQuery object
Emulator SupportN
SDK ConstraintNone
Example
//This example sets progressbar and shows it
 
$('#progress1').sfProgressBar({
    type: 'loading',
    max: 100
});
$('#progress1').sfProgressBar('show');