bootstrap-timepicker
bootstrap-timepicker copied to clipboard
hide bootstrap-timepicker-widget?
if you click on the button (input-group-addon) again to close(hide) the block - bootstrap-timepicker-widget?
What are you asking? I don't understand the question.
Hi, could we enable hiding widget when escape pressed?
I believe the op is asking that the widget hides when the input-group-addon icon is clicked a second time. (The first click currently shows the widget.) If the op is not asking this, then I am.
Check this jsbin, I am calling the showWidget and hideWidget methods with a flag that I set and unset whenever the input-group-addon is clicked.
var isHidden = false;
$('.timepicker-toggle').on('click',function(e){
if(!isHidden) {
$('#timepicker').timepicker('hideWidget');
isHidden=true;
} else {
$('#timepicker').timepicker('showWidget');
isHidden = false;
}
#357 Add one line to fix this issue.