Document that calling tooltip/popover .show()/.hide() qualifies as manual triggering
Created by: markkolich
According to http://getbootstrap.com/javascript/#popovers there doesn't appear to be a way to auto-hide a popover, that is manually shown/triggered, after some interval.
As such, I end up doing this in my application:
button.popover('show');
setTimeout(function() {
button.popover('hide');
}, button.attr('data-delay-hide') || 2000);
Looking at the documentation on the data-delay
attribute for popovers, I see "does not apply to manual trigger type". I conjecture my button.popover('show')
falls into this manual trigger category and as a result I'm responsible for hiding the popover myself?
Somewhat expected, I tried <button data-delay='{"hide":3000}'>
without the JS above and this failed miserably.
Shouldn't a popover I trigger manually be hidden after the hide delay I provide in the data-delay
attribute? If not, I'd like to suggest an update the documentation at http://getbootstrap.com/javascript/#popovers to be a bit clearer with a red callout highlighting this limitation.