Bootstrap collapose, dropdown, clicks and hovers

Permalink
I have seen many implementations of bootstrap drop downs and collapsible elements. By default it is usually a click action, sometimes a hover on the desktop activates the drop down and a click on mobile devices does it. Sometimes a double click is needed on mobile devices, there seems to be many options and I cannot decide the best approach.

I have looked at a lot of code snippets on ways to modify bootstrap behavior, many do not really work well across all platforms. I usually try to go with the click to activate the drop down, but people often ask about hover.

I am interested in hearing other peoples thoughts on how they prefer to activate drop downs so it best works on desktop and mobile devices.

thanks
Peter

pvernaglia
 
MrKDilkington replied on at Permalink Reply
MrKDilkington
Hi pvernaglia,

I think a combination of hover and touch can be an effective approach.

Here is an example of a hover and touch navigation that Mesuva posted on his blog.
http://www.mesuva.com.au/blog/technical-notes/a-sass-based-combined...
styu replied on at Permalink Reply
styu
Hey Peter, I have just published a dropdown hover plugin, which works with the Bootstrap API, so it works fine on all platforms. You can also define the click behavior.

I hope you find it useful:https://github.com/istvan-ujjmeszaros/bootstrap-dropdown-hover...