apply

fires on saving the timepicker value

void apply(){ ... };

Deprecated

instead of it, you can use the beforeApply and afterApply events:

timepicker.events.on("BeforeApply", function(value){
    console.log("The ", value, " of a timepicker will be saved");
    return false;
});
 
timepicker.events.on("AfterApply", function(value){
    console.log("The ", value, " of a timepicker is saved");
});

Example

timepicker.events.on("Apply", function(){
    console.log("The value of a timepicker "+timepicker.getValue()+ " has been saved");
});

Related samples

Change log
  • added in v6.4
  • deprecated in v7.0
Back to top