EasyUI Forum

General Category => EasyUI for jQuery => Topic started by: shivavalkyre on February 18, 2024, 08:30:00 AM



Title: Datetimebox OK button event
Post by: shivavalkyre on February 18, 2024, 08:30:00 AM
how to detect OK button clicked at datetimebox

thanks


Title: Re: Datetimebox OK button event
Post by: Wojak on February 19, 2024, 12:11:46 AM
Maybe you can use the example from datebox, because dateboxtime extend from datebox

Code:
var buttons = $.extend([], $.fn.datebox.defaults.buttons);
buttons.splice(1, 0, {
text: 'MyBtn',
handler: function(target){
alert('click MyBtn');
}
});
$('#dd').datebox({
buttons: buttons
});