Skip to main content

Timepicker API overview

Methods#

NameDescription
clear()clears the value set in the timepicker
destructor()removes a timepicker instance and releases occupied resources
getValue()returns the current value of a TimePicker
paint()repaints a timepicker on a page
setValue()sets value for a TimePicker

Events#

NameDescription
afterApplyfires after saving the timepicker value
afterClosefires after closing the timepicker
beforeApplyfires before saving the timepicker value
beforeClosefires before closing the timepicker
changefires on change of the timepicker value

Properties#

NameDescription
controlsdefines whether a timepicker is equipped with the Close and Save buttons
cssadds style classes to TimePicker
timeFormatdefines what clock format is activated: the 12-hour or 24-hour one
valuethe time value to be set on initialization of the timepicker
valueFormatdefines the format of the value to be applied when working with TimePicker events