bootstrap-timepicker icon indicating copy to clipboard operation
bootstrap-timepicker copied to clipboard

hide bootstrap-timepicker-widget?

Open sau-152mm opened this issue 10 years ago • 5 comments

if you click on the button (input-group-addon) again to close(hide) the block - bootstrap-timepicker-widget?

sau-152mm avatar Sep 25 '15 09:09 sau-152mm

What are you asking? I don't understand the question.

mrhota avatar Nov 07 '15 14:11 mrhota

Hi, could we enable hiding widget when escape pressed?

mesuttalebi avatar Dec 28 '15 09:12 mesuttalebi

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.

ttyson99 avatar Jan 18 '16 08:01 ttyson99

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;
      }

vamsiampolu avatar Jun 19 '16 07:06 vamsiampolu

#357 Add one line to fix this issue.

wilga avatar Oct 28 '16 17:10 wilga