top

SFDATEPICKER

** This class will not be supported in 2015.

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


This is the class for HScroll Datepicker UI components.

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

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

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


Methods

hide

Description
This function hides datepicker.
Parameters
none
Return■Void
Emulator SupportN
SDK ConstraintNone
Example
$('#dp1').sfDatepicker('hide');

show

Description
This function displays the popup from the datepicker, sets the current date or time initialize popup timer, and sets the focus on first element.
Parameters
none
Return■Object
  - jQuery object
Emulator SupportN
SDK ConstraintNone
Example
//Set focus on a particular button
 
$('#datepicker').sfDatepicker({
    timePicker : false,
    format : "yyyy-MM-dd",
    callback : callbackfn
});
$('#datepicker').sfDatepicker('show')