save

fires on saving the timepicker value

void save(){ ... };

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("Save", function(){
    console.log("The value of a timepicker "+timepicker.getValue()+ " has been saved");
});

Related samples

Back to top